bool hasScheme

Returns whether the URI has a scheme component.

Source

bool get hasScheme => scheme.isNotEmpty;