refactor uri scheme handling
This commit is contained in:
1 parent
25b153af97
commit
702b4b27ca
14 files changed
+32
-36
No files matched your search
@@ -24,4 +24,8 @@ extension UriX on Uri {
|
||||
Uri get base => Uri.parse('$scheme://$authority');
|
||||
|
||||
bool get hasSupportedScheme => _supportedSchemes.contains(scheme);
|
||||
|
||||
bool get isHttp => isScheme('http');
|
||||
bool get isHttps => isScheme('https');
|
||||
bool get isHttpOrHttps => isHttp || isHttps;
|
||||
}
|
||||
Reference in new issue
Block a user