resetTorchState method
void
resetTorchState()
Resets the cached torch state to off without a platform call. Use after an operation where the platform drops the torch on its own (e.g. switching the camera input), so isTorchEnabled stays in sync.
Implementation
void resetTorchState() => _torchEnabled = false;