close method

Future<void> close()

Closes the assistant (the X): real endSession() + teardown.

Implementation

Future<void> close() async {
  final s = _session;
  _setPanelOpen(false);
  if (s != null) {
    await s.endSession();
    await _disposeSession();
  }
}