GlobalContext class abstract

A Global 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.

It works exactly like the Context, however in a global scope, meaning that it will exists while the application is still running (even in the background), which allows it to be accessed from any application point, this point being a component or an action linked to a component conventionally or programmatically.

Constructors

GlobalContext()

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 global context according to the path passed as parameter.
get<T>([String path]) → T
Gets a value in the global context according to the path passed as parameter. The path is optional, if not passed, the entire global context is returned. If no value is found for the provided path, 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 global context according to the path passed as parameter. The path can be ommited, in this case, the value is set to the entire global context.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited