encodeToBytes method

Uint8List encodeToBytes(
  1. Currency amount
)

Encode an amount to bytes

Implementation

Uint8List encodeToBytes(Currency amount) {
  return Int64.encodeToBytes(BigInt.parse(amount.toMolina()));
}