create static method

Future<Session> create({
  1. required String configPath,
})

Creates a new session in this process. configPath is a path to a directory where configuration files shall be stored. If it doesn't exists, it will be created.

Implementation

static Future<Session> create({
  required String configPath,
}) =>
    Client.connect(configPath: configPath).then(Session._);