isAvailable method

Future<bool> isAvailable()

Checks if the torch (flashlight) functionality is available on the device.

Implementation

Future<bool> isAvailable() async {
  return await TorchFlashlight.isTorchFlashlightAvailable();
}