How to convert hexadecimal to integer in Dart

1 Answer

0 votes
void main() {
    String string = "FF";

    print(int.parse(string, radix: 16));
}



/*
run:

255

*/

 



answered Oct 18, 2022 by avibootz

Related questions

1 answer 304 views
1 answer 278 views
1 answer 250 views
2 answers 397 views
2 answers 299 views
299 views asked Oct 19, 2022 by avibootz
1 answer 229 views
1 answer 336 views
...