Flutter int value if first digit is not zero I want to get first value
for example
int x=123 result =1;
another example int y=234; result=2;
if the first value is zero I want to get the second value
for example int a=023; result=2;
another example int b=098; result=9;
how can i do this using dart?