toggleTorch method

Future<void> toggleTorch()

Implementation

Future<void> toggleTorch() => setTorch(!value.torchOn);