Installing

dependencies:
  convert_hex: ^0.1.0

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
}

Libraries

convert_hex