enableCameraTorch method
Enable/Disable flash (supports only the Android and iOS platforms)
Parameters:
enable
true
: enabled; false
: disabled. Default value: false
Implementation
Future<int?> enableCameraTorch(bool enable) async {
var result = await _channel.invokeMethod('enableCameraTorch', {
"enable": enable,
});
return V2TXLiveFlutterResult.intValue(result);
}