isFlashAvailable method
Indicates whether the flash is currently available for use.
The flash may become unavailable if, for example, the device overheats and needs to cool off.
Implementation
Future<bool> isFlashAvailable() async {
return await _channel.$isFlashAvailable(this) as bool;
}