RouteEntity class

Represents a route entity with its associated configurations.

Annotations

Constructors

RouteEntity.new({required Uri uri, required RouteBuilder routeBuilder, required String key, String parent = '', RouteEntity? parentEntity, Page? page, Map<String, dynamic> params = const {}, dynamic arguments, RouteType type = RouteType.navigate})
Creates a RouteEntity with the provided parameters.

Properties

arguments → dynamic
final
hashCode int
The hash code for this object.
no setteroverride
key String
The key of the route.
final
page Page
The page associated with the route.
latefinal
params Map<String, dynamic>
The parameters of the route.
final
parent String
The parent of the route.
final
parentEntity RouteEntity?
The parent entity of the route.
final
routeBuilder RouteBuilder
The route builder function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RouteType
The type of the route.
final
uri Uri
The URI of the route.
final

Methods

addNewInfo(Uri uriCandidate) RouteEntity?
Adds new info based on a candidate URI and returns a new RouteEntity.
copyWith({Uri? uri, String? parent, String? key, RouteEntity? parentEntity, RouteBuilder? routeBuilder, RouteType? type, Page? page, dynamic arguments, Map<String, dynamic>? params}) RouteEntity
Creates a new RouteEntity by copying existing values and replacing them with new ones if provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant RouteEntity other) bool
The equality operator.
override