setTorchMode abstract method

Future<void> setTorchMode(
  1. 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);