PayloadSpec constructor

PayloadSpec(
  1. LocalId id, {
  2. required PayloadEncoding encoding,
  3. String? layout,
  4. String? format,
  5. int? width,
  6. int? height,
  7. int? length,
  8. Uint8List? bytes,
})

Creates a payload descriptor with the given stable id.

Implementation

PayloadSpec(
  this.id, {
  required this.encoding,
  this.layout,
  this.format,
  this.width,
  this.height,
  this.length,
  this.bytes,
});