LocalContext class abstract
A Local Context is a class that can assume a value of any variable type. This is similar to a map that defines a subset of key/value or complex JSONs objects that defines object trees. Differently than Global Context, Local Contexts are attached to the Beagle View, and Managed by a LocalContextsManager, which each view has its own instance.
It works exactly like the Context, however in a single Beagle View scope, meaning that it will exists while the application is still running (even in the background), which allows it to be accessed from any point of the view, this point being a component or an action linked to a component conventionally or programmatically.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
[String path]) → void -
Removes a value from the local context according to the
path
passed as parameter. -
get<
T> ([String path]) → T -
Gets a value in the local context according to the
path
passed as parameter. Thepath
is optional, if not passed, the entire local context is returned. If no value is found for the providedpath
, null is returned. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set<
T> (T value, [String path]) → void -
Sets a
value
in the local context according to thepath
passed as parameter. Thepath
can be ommited, in this case, thevalue
is set to the entire local context. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited