enableCameraTorch method

Future<int?> enableCameraTorch(
  1. bool enable
)

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);
}