createContext method

Future<CreateContextResult> createContext(
  1. String? contextRoot
)

Create an execution context for the executable file with the given path. The context that is created will persist until execution.deleteContext is used to delete it. Clients, therefore, are responsible for managing the lifetime of execution contexts.

Implementation

Future<CreateContextResult> createContext(String? contextRoot) {
  final Map m = {'contextRoot': contextRoot};
  return _call('execution.createContext', m).then(CreateContextResult.parse);
}