convert_hex 0.2.0 copy "convert_hex: ^0.2.0" to clipboard
convert_hex: ^0.2.0 copied to clipboard

Hexadecimal conversion for easier adjustment

Features #

function convert encode and decode, Base 16 HEX and Base 64 RFC 4648.

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

Add dependency #

Please check the latest version before installation. If there is any problem with the new version, please use the previous version

dependencies:
  flutter:
    sdk: flutter
  # add convert_hex
  convert_hex: ^{latest version}

Add the following imports to your Dart code #

import 'package:convert_hex/convert_hex.dart';

Example #

Use Hex #

import 'package:convert_hex/convert_hex.dart';

int dec = 1080;
String sEncode= convertHex.hex.encode(dec);
print(sEncode);//'438'
int sDecode = convertHex.hex.decode(sEncode);
print(sDecode);//'1080'

Use base64 RFC 4648 #

import 'package:convert_hex/convert_hex.dart';

int dec = 4096;
String sEncode = convertHex.base64.encode(dec);
print(sEncode);//'BAA'
int sDecode = convertHex.base64.decode(sEncode);
print(sDecode);//4096
0
likes
100
pub points
63%
popularity

Publisher

unverified uploader

Hexadecimal conversion for easier adjustment

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on convert_hex