简体   繁体   中英

How does flutter convert a hex string to a binary string?

Is there a direct conversion method? I need to convert AA to 1010 1010

您可以为int.parsetoRadixString指定基数

print(int.parse('AA',radix: 16).toRadixString(2));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM