handles method

  1. @override
bool handles(
  1. String locator
)
override

Anything without a <scheme>: prefix. A bare Windows drive letter (C:\…) is a path, not a scheme, so it is deliberately not matched.

Implementation

@override
bool handles(String locator) =>
    !RegExp(r'^[a-zA-Z][a-zA-Z0-9+.\-]+:').hasMatch(locator);