toggleTorch method

  1. @override
Future<void> toggleTorch(
  1. Torch torch
)
override

Implementation

@override
Future<void> toggleTorch(Torch torch) {
  return methodChannel.invokeMethod<void>(
    'toggleTorch',
    <String, dynamic>{
      'torch': torch.index,
    },
  );
}