toggleFlash method

Future<void> toggleFlash()

Toggle flash of the device.

Can throw a PlatformException if doesn't have flash.

Implementation

Future<void> toggleFlash() async {
  return _barcodeScannerState?._toggleFlash();
}