setCameraTorchOn method
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});
}