toggleTorch method

Future<void> toggleTorch()

Toggles flashlight torch state.

Implementation

Future<void> toggleTorch() async {
  await _controller.toggleFlash();
}