withConfig method

Session withConfig(
  1. Map<String, Object> config
)

Returns a new Session with the specified client session configuration.

The config parameter is merged with any existing session config defined on the current Session.

Equivalent to using the configure session command. For available configuration parameters refer to the Config documentation.

Implementation

Session withConfig(Map<String, Object> config) {
  return Session(
      config: {...this.config, ...config},
      module: module,
      moduleAliases: moduleAliases,
      globals: globals);
}