OneBlob constructor

OneBlob({
  1. required String name,
  2. required String format,
  3. required Uint8List data,
  4. int? size,
})

Creates a BLOB value holding data.

size defaults to the length of data; for compressed formats it is the uncompressed size.

Implementation

OneBlob({
  required super.name,
  required this.format,
  required this.data,
  int? size,
}) : size = size ?? data.length;