set<T> abstract method
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.
The path
follow the same rules as the method get
. Example: order.items
.
All values in the GlobalContext must be encodable, i.e. Map, Array, number, bool or String.
If the value
is not encodable, an exception is thrown.
Implementation
@override
void set<T>(T value, [String path]);