BloomRouteMatch class

Metadata match information passed to guards and route builders.

Contains the matched location URI, path template, path parameters, query parameters, and optional extra arguments passed during navigation.

Example:

Widget build(BuildContext context, BloomRouteMatch match) {
  final id = match.pathParameters['id'];
  return UserProfilePage(userId: id!);
}

Constructors

BloomRouteMatch({required String location, required String path, Map<String, String> pathParameters = const {}, Map<String, String> queryParameters = const {}, Object? extra})
Creates a BloomRouteMatch instance.
const

Properties

extra → Object?
Optional extra data payload passed during navigation.
final
hashCode → int
The hash code for this object.
no setterinherited
location → String
The full matched URI location string (including path and query parameters).
final
path → String
The matched path pattern (e.g. '/users/:id').
final
pathParameters → Map<String, String>
Extracted path parameters matching dynamic route segments.
final
queryParameters → Map<String, String>
Query parameters extracted from the location URI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited