BigIntToBytesExtension extension

Extension to add our asBytes handling to BigInt

on

Methods

asBytes({Endian endian = Endian.big, int? maxBytes}) Uint8ClampedList
Convert a BigInt to bytes with respect to Endianness of endian. If maxBytes is set, then it will ensure the result is fixed length such that: