setTorchStrength method
Sets the torch strength level.
strength should be between 0 and getMaxTorchStrength().
Throws an error if not supported by the device.
Implementation
@override
Future<void> setTorchStrength(int strength) async {
await methodChannel
.invokeMethod('set_torch_strength', {'strength': strength});
}