toggleFlash method

Future<void> toggleFlash(
  1. bool enabled
)

Implementation

Future<void> toggleFlash(bool enabled) async {
  try {
    await _channel.invokeMethod('toggleFlash', enabled);
  } on PlatformException catch (e) {
    log('Failed to toggle flash: ${e.message}');
  }
}