setFlash method

Future<bool> setFlash(
  1. bool on
)

Toggles the device flash/torch.

Implementation

Future<bool> setFlash(bool on) {
  if (!_isRunning) throw StateError('Camera is not running.');
  return NexoraSdkPlatform.instance.setFlash(on);
}