isTorchAvailable method

  1. @override
Future<bool> isTorchAvailable()
override

Checks if the torch is available on the device.

Implementation

@override
Future<bool> isTorchAvailable() async {
  final result = await methodChannel.invokeMethod<bool>('torch_available');
  return result ?? false;
}