isCameraTorchSupported method Null safety

Future<bool?> isCameraTorchSupported()

Checks whether the camera flash function is supported.

Ensure that you call this method after the camera starts, for example, by calling startPreview or joinChannel.

Returns

  • true: The device supports the camera flash function.
  • false: The device does not the support camera flash function.

Implementation

@override
Future<bool?> isCameraTorchSupported() {
  return _invokeMethod('isCameraTorchSupported');
}