toggleFlash method

  1. @override
Future<void> toggleFlash(
  1. bool enable
)
override

Toggles the camera flash

Implementation

@override
Future<void> toggleFlash(bool enable) async {
  try {
    await methodChannel.invokeMethod<void>('toggleFlash', {'enable': enable});
  } on PlatformException catch (e) {
    throw _handlePlatformException(e);
  }
}