hasScheme property Null safety

bool hasScheme

Returns whether the URI has a scheme component.

Implementation

bool get hasScheme => scheme.isNotEmpty;