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