toggleTorch method

Future<void> toggleTorch(
  1. Torch torch
)

Turn light on

Implementation

Future<void> toggleTorch(Torch torch) async {
  _platformInstance.toggleTorch(torch);
}