ConditionalRoute class final
- Inheritance
-
- Object
- ContentItem
- RouteBase
- ConditionalRoute
- Annotations
-
- @JsonSerializable()
Constructors
-
ConditionalRoute({Condition? condition, List<
CaseRouteItem> ? cases, String? defaultCase, required String title, required String path, required DateTime createdAt, required DateTime updatedAt, required String id, LayoutConfiguration<ContentItem> ? layout, Category? category, List<ContentModifierConfiguration> ? modifiers}) -
ConditionalRoute.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
cases
→ List<
CaseRouteItem> ? -
final
- category → Category?
-
finalinherited
- condition → Condition?
-
final
- createdAt → DateTime
-
finalinherited
- defaultCase → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
-
layout
→ LayoutConfiguration<
ContentItem> ? -
The layout configuration for the content item.
finalinherited
-
modifiers
→ List<
ContentModifierConfiguration> ? -
finalinherited
- parent ↔ ContentItem?
-
The parent content item of this content item. This is used internally by the content system.
getter/setter pairinherited
- path → String
-
finalinherited
- routeType → RouteTypeConfiguration?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaType → String
-
The schema type of the content item.
finalinherited
- title → String
-
finalinherited
- updatedAt → DateTime
-
finalinherited
Methods
-
createPage<
T> (BuildContext context, [LocalKey? pageKey]) → Page< T> -
inherited
-
dispose(
) → Future< void> -
override
-
evaluate(
BuildContext context) → Future< RouteBase?> -
getLayout(
) → LayoutConfiguration< ContentItem> ? -
Gets the layout to use for the
ContentItem
. By default its the layout itself. However this acts as an extension point for customContentItem
s that may have a different strategy for applying layouts.inherited -
getModifiers(
) → List< ContentModifierConfiguration> ? -
Gets the modifiers to use for the
ContentItem
. By default its the modifiers itself. However this acts as an extension point for customContentItem
s that may have a different strategy for applying modifiers.inherited -
init(
BuildContext context) → Future< RouteBase?> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setParent(
Iterable< ContentItem?> children) → void -
Sets the parent content item for the given list of children.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
contentBuilder
→ ContentBuilder<
ConditionalRoute> -
final
-
typeDescriptor
→ TypeDescriptor<
ConditionalRoute> -
final
Constants
- schemaName → const String