isTorchActive method
A Boolean value indicating whether the device’s torch is currently active.
A torch must be present on the device and currently available before it can be active.
Implementation
Future<bool> isTorchActive() async {
return await _channel.$isTorchActive(this) as bool;
}