startCamera method

  1. @override
Future<bool> startCamera({
  1. int width = 640,
  2. int height = 480,
})
override

Starts the camera with specified resolution.

Implementation

@override
Future<bool> startCamera({int width = 640, int height = 480}) async =>
    await methodChannel.invokeMethod<bool>('startCamera', {'width': width, 'height': height}) ?? false;