isTorchAvailable method

Future<bool> isTorchAvailable()

Indicates whether the torch is currently available for use.

The torch may become unavailable if, for example, the device overheats and needs to cool off.

Implementation

Future<bool> isTorchAvailable() async {
  return await _channel.$isTorchAvailable(this) as bool;
}