DVModelPageDataMode enum

How a generated Model.Page(...) resolves the data it renders.

Inheritance
Available extensions

Values

auto → const DVModelPageDataMode

Picks the mode from the input: an existing model renders synchronously, an id or route parameter triggers an async query, a signal renders reactively, and a cached record renders immediately then refreshes.

sync → const DVModelPageDataMode

Renders an already-loaded model with no fetch.

async → const DVModelPageDataMode

Awaits a future before rendering.

reactive → const DVModelPageDataMode

Rebuilds from a signal as it changes.

cached → const DVModelPageDataMode

Serves the cached record; does not refresh on its own.

staleWhileRevalidate → const DVModelPageDataMode

Serves the cached record immediately, then refreshes in the background.

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<DVModelPageDataMode>
A constant List of the values in this enum, in order of their declaration.