CapturedData constructor

const CapturedData({
  1. required int width,
  2. required int height,
  3. required Uint8List bytes,
})

Creates a CapturedData instance.

Validates that width and height are positive and bytes is non-empty.

Implementation

const CapturedData({
  required this.width,
  required this.height,
  required this.bytes,
}) : assert(width > 0, 'Width must be positive'),
     assert(height > 0, 'Height must be positive'),
     assert(bytes.length > 0, 'Bytes must not be empty');