hasFlash method
Checks if flash is available on the device
Implementation
@override
Future<bool> hasFlash() async {
try {
final result = await methodChannel.invokeMethod<bool>('hasFlash');
return result ?? false;
} on PlatformException catch (e) {
throw _handlePlatformException(e);
}
}