RouteValidationErrorCode enum
Every error category the route build can fail with (spec FR-006).
Values
- duplicatePath → const RouteValidationErrorCode
-
Two routes declared the same path.
- duplicateName → const RouteValidationErrorCode
-
Two routes declared the same explicit or derived name.
- missingParent → const RouteValidationErrorCode
-
A route's
parentreferences a route that does not exist. - parentNotShell → const RouteValidationErrorCode
-
A route's
parentresolves to a route that is notisShell. - nonViewTarget → const RouteValidationErrorCode
-
@Routeplaced on something that is not a View-like class. - unsupportedParamType → const RouteValidationErrorCode
-
A path/query parameter type outside the supported set.
- danglingRedirectTarget → const RouteValidationErrorCode
-
A redirect rule whose target path matches no declared route.
- goRouterMissing → const RouteValidationErrorCode
-
Routes exist but the project does not depend on
go_router.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
RouteValidationErrorCode> - A constant List of the values in this enum, in order of their declaration.