toBytesOrNull method

Uint8List? toBytesOrNull()

Returns the accumulated bytes, or null if nothing was added.

Implementation

Uint8List? toBytesOrNull() {
  return _builder.isEmpty ? null : _builder.toBytes();
}