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 302 views
1 answer 275 views
1 answer 241 views
2 answers 391 views
2 answers 293 views
293 views asked Oct 19, 2022 by avibootz
1 answer 223 views
1 answer 331 views
...