startPreview method

Future<void> startPreview()

Starts capturing and drawing preview frames to the screen.

Preview will not actually start until a surface is supplied with previewTexture.

Implementation

Future<void> startPreview() {
  assert(!_isClosed);

  return CameraChannel.channel.invokeMethod<void>(
    'Camera#startPreview',
    <String, dynamic>{'handle': handle},
  );
}