setCameraTorchOn method

  1. @override
Future<void> setCameraTorchOn(
  1. bool isOn
)

Enables the camera flash function.

Parameter isOn Sets whether to enable/disable the camera flash function:

  • true: Enable the camera flash function.
  • false: Disable the camera flash function.

Implementation

@override
Future<void> setCameraTorchOn(bool isOn) {
  return _invokeMethod('setCameraTorchOn', {'isOn': isOn});
}