CapturedData constructor
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');