isTorchActive property Null safety
Return a bool
that checks the torch state nativelly.
You can use this to enable/disable a toggle in it's initial state.
Implementation
Future<bool?> get isTorchActive async =>
await _channel.invokeMethod('isTorchActive');