matchPath method

bool matchPath(
  1. String? route
)

Implementation

bool matchPath(String? route) {
  if (route == null) {
    return false;
  }

  final uri = Uri.parse(route);

  return this.uri.path.isEmpty || uri.path == this.uri.path;
}