hasTorch property Null safety

Future<bool?> hasTorch

Return a bool if the current device is able to use torch methods.

You can use this to display something in your app configuration to handle torch usage.

Implementation

Future<bool?> get hasTorch async => await _channel.invokeMethod('hasTorch');