rawFrame method Null safety
Implementation
Uint8List? rawFrame() {
if (!_formatMap.containsKey(format) || !isValid) return null;
int size = width * height * (format == Format.FORMAT_GRAY ? 1 : 3);
return data.cast<Uint8>().asTypedList(size);
}