set<T> abstract method
Sets a value
in the local context according to the path
passed as parameter. The path
can be ommited, in this case, the value
is set to the entire local context.
The path
follow the same rules as the method get
. Example: order.items
.
All values in the LocalContext 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]);