isOn method

Future<bool> isOn()

Returns the current torch state (true if on, false if off).

Implementation

Future<bool> isOn() async {
  return await TorchFlashlight.isTorchOn();
}