run method

Future<void> run()

Runs the dashboard until the user quits, restoring the terminal afterwards.

Implementation

Future<void> run() async {
  _terminal.enter();
  try {
    _auth = await _safeAuthSnapshot();
    _prefillLogin();
    _render();
    _subscribe();
    await _done.future;
  } finally {
    await _unsubscribe();
    await _backend.close();
    _terminal.leave();
  }
}