isAvailable method
On Android, returns true
if Chrome Custom Tabs is available.
On iOS, returns true
if SFSafariViewController is available.
Otherwise returns false
.
Officially Supported Platforms/Implementations:
- Android
- iOS
Implementation
@override
Future<bool> isAvailable() async {
Map<String, dynamic> args = <String, dynamic>{};
return await _staticChannel.invokeMethod<bool>("isAvailable", args) ??
false;
}