base16 2.0.1
base16: ^2.0.1 copied to clipboard
Simple base16 (hex) encoder. Used to encode bytes to semi-readable String format, e.g. to encode bytes of UUID, ObjectID, etc.
import 'dart:typed_data';
import 'package:base16/base16.dart';
final Uint8List _objectIDBytes = Uint8List.fromList(const [142, 71, 191, 93, 246, 100, 21, 15, 0, 205, 16, 37]);
void main() => print(base16encode(_objectIDBytes));