isTorchAvailable method

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

Checks if the torch is available on the device.

Implementation

@override
Future<bool> isTorchAvailable() async {
  // Web doesn't support hardware torch access
  return false;
}