ScopedValues class

A class that holds the scoped values for a widget/context. This is helpful access context bound data in a widget tree. This makes it so that you don't have to pass context around to access data and end up using context across async gaps. This collects all the data you need in one place before-hand so that you can access it later.

Constructors

ScopedValues.empty()
Creates a new scoped values instance with empty values.
ScopedValues.of(BuildContext context, {List<VariableData>? variablesOverrides, Map<String, dynamic>? dataOverrides})
Creates a new scoped values instance from a given context.

Properties

cloudDatabase CloudDatabase?
Cloud storage instance for the relative Codelessly instance.
no setter
codelesslyContext CodelesslyContext?
Codelessly context instance for the relative Codelessly instance.
no setter
data Map<String, dynamic>
A map of data that is passed to loaded layouts for nodes to replace their values with.
no setter
hashCode int
The hash code for this object.
no setterinherited
indexedItem IndexedItem?
The indexed item provider if it exists in this context.
latefinal
localStorage LocalDatabase?
Local storage instance for the relative Codelessly instance.
no setter
nodeState Object?
The exposed internal value of a node in the widget tree.
latefinal
nodeValues Map<String, Observable<List<ValueModel<Object?>>>>
no setter
routeParams Map<String, dynamic>
The route params for this route/page for given context.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variables Map<String, VariableData>
Variable name -> Variable.
no setter

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