asBytes method

Uint8List asBytes({
  1. required Encoding encoding,
})

Implementation

Uint8List asBytes({required Encoding encoding}) {
  final buffer = PgByteDataWriter(encoding: encoding);
  applyToBuffer(buffer);
  return buffer.toBytes();
}