convert_hex 0.0.2 convert_hex: ^0.0.2 copied to clipboard
Hexadecimal conversion for easier adjustment
Installing #
dependencies:
convert_hex: ^0.0.1
Example #
import 'package:convert_hex/convert_hex.dart';
void main() {
Hex.decode("2BB9"); //11193
Hex.decode("1aef2"); //110322
Hex.encode(2019); //7E3
Hex.encode(78895); //1342F
//charDecode => String a-f,A-F
Hex.charDecode("f"); //15
Hex.charDecode("A"); //10
Hex.charDecode("h"); //0
//charEncode => int 10-15
Hex.charEncode(10); //A
Hex.charEncode(3); //0
}