isUnsupportedScheme property
bool
isUnsupportedScheme
True if the destination URI isn't one of the supportedSchemes.
Implementation
bool get isUnsupportedScheme {
final specifiedUnsupported = _isUnsupportedScheme;
if (specifiedUnsupported != null) return specifiedUnsupported;
var result = true;
try {
// This can throw a FormatException when the URI cannot be parsed.
result = !supportedSchemes.contains(finalUri.scheme);
} on FormatException {
// Pass.
}
return result;
}