flash method

Future<bool> flash(
  1. bool value
)

Implementation

Future<bool> flash(bool value) async {
  try {
    return await _channel.invokeMethod(
      'enableFlash',
      <String, dynamic>{
        'flash': value,
      },
    );
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message!);
  }
}