CompositeDeeplinkHandler class
Composite handler that combines multiple DeeplinkHandlers.
Iterates through handlers according to the specified strategy. Stops at the first handler that returns a non-null result.
- Implemented types
- Annotations
-
- @experimental
Constructors
-
CompositeDeeplinkHandler({DeeplinkHandlerStrategy strategy = const DeeplinkHandlerStrategy.fifo(), Iterable<
DeeplinkHandler> handlers = const []}) - Composite handler that combines multiple DeeplinkHandlers.
Properties
-
handlers
→ Iterable<
DeeplinkHandler> -
Returns handlers in their registration order.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strategy → DeeplinkHandlerStrategy
-
The strategy for iterating through handlers.
final
Methods
-
add(
DeeplinkHandler handler) → void - Adds a handler to the end of the list.
-
handle(
Uri uri, RouteNode currentState) → DeeplinkHandlerResult? -
Handles the
uri.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
DeeplinkHandler handler) → bool - Removes a handler from the list.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited