captureFrame method
Captures a frame from the camera.
Returns a Future that completes with a map containing the frame RGB88 data, width, and height.
Implementation
@override
Future<Map<String, dynamic>> captureFrame() async {
Map<dynamic, dynamic> frame =
await methodChannel.invokeMethod('captureFrame');
return frame.cast<String, dynamic>();
}