isScheme abstract method

bool isScheme(String scheme)

Whether the scheme of this Uri is scheme.

The scheme should be the same as the one returned by Uri.scheme, but doesn't have to be case-normalized to lower-case characters.

Example:

var uri = Uri.parse("http://example.com/");
print(uri.isScheme("HTTP"));  // Prints true.

A null or empty scheme string matches a URI with no scheme (one where hasScheme returns false).

Source

bool isScheme(String scheme);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/Uri/isScheme.html