toggleFlash method

Future<void> toggleFlash()

Toggle flash of the device.

Can throw a PlatformException if doesn't have flash.

Implementation

Future<void> toggleFlash() {
  return _channel.invokeMethod(_toggleFlashMethod);
}