IntConvert extension

Extension to convert int to other types.

An int can represent a single byte or multiple bytes.

on

Methods

toBytes(int length, {Endianness endianness = Endianness.Big}) Uint8List

Available on int, provided by the IntConvert extension

Converts an integer to bytes with specified length and endianness.
toHexStringAsByte() String

Available on int, provided by the IntConvert extension

Converts a single byte integer to a hex string.
toHexStringAsBytes(int length, {Endianness endianness = Endianness.Big}) String

Available on int, provided by the IntConvert extension

Converts an integer to a hex string with specified length and endianness.