convert_hex

Creator: coderz1093

Last updated:

0 purchases

convert_hex Image
convert_hex Images

Languages

Categories

Add to Cart

Description:

convert hex

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}
copied to clipboard
Add the following imports to your Dart code #
import 'package:convert_hex/convert_hex.dart';
copied to clipboard
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'
copied to clipboard
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
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.