withGlobals method
Returns a new Session with the specified global values.
The globals
parameter is merged with any existing globals defined
on the current Session.
Equivalent to using the set global
command.
Implementation
Session withGlobals(Map<String, dynamic> globals) {
return Session(
globals: {...this.globals, ...globals},
module: module,
moduleAliases: moduleAliases,
config: config);
}