isSamePackageAs method
Whether this URI and other
are each 'package:' URIs referencing the same
package name.
Implementation
bool isSamePackageAs(Uri other) {
return isScheme('package') &&
other.isScheme('package') &&
pathSegments.isNotEmpty &&
other.pathSegments.isNotEmpty &&
pathSegments.first == other.pathSegments.first;
}