RouteLoadResult class final

The outcome of one route loader.

Constructors

RouteLoadResult.client()
Marks data that must be loaded by the client runtime.
const
RouteLoadResult.data(Object? data)
Creates a successful loader result.
const
RouteLoadResult.error(Object? error, StackTrace? stackTrace)
Creates a failed loader result.
const

Properties

data → Object?
Loader data, when loading succeeded.
final
error → Object?
The loader error, when loading failed.
final
hasData → bool
Whether loading succeeded.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isLoaded → bool
Whether a loader ran in the runtime that produced this result.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The loader error stack trace.
final

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