toggleFlash method
Toggles the camera flash
Implementation
@override
Future<void> toggleFlash(bool enable) async {
try {
await methodChannel.invokeMethod<void>('toggleFlash', {'enable': enable});
} on PlatformException catch (e) {
throw _handlePlatformException(e);
}
}