dispose static method

Future<void> dispose()

Disposes the underlying session. Call during app shutdown if desired.

Implementation

static Future<void> dispose() async {
  if (_session != null) {
    await _session!.close();
    _session = null;
    _inputName = null;
    _outputNames = [];
  }
}