isAppLink method
Checks whether the given URL is an app link or a web link. Returns true if it's an app link, false otherwise.
Implementation
bool isAppLink() {
String? scheme;
try {
scheme = Uri.parse(url).scheme;
} catch (e) {
scheme = appScheme;
}
return !['http', 'https', 'about', 'data', ''].contains(scheme);
}