setTorchMode abstract method Null safety
- TorchMode mode
Set the torch mode for a device.
supportedTorchModes should be called before this.
For some platforms, this can override a flash mode.
Implementation
Future<void> setTorchMode(TorchMode mode);