goOnline method
void
goOnline()
Reconnects after goOffline. On an instance that has not connected yet it starts the
connection, as a first read or write would. Synchronous and idempotent; a no-op after close,
after app.delete() is called, or after a failed start. It does not undo a server kill: once
the server has killed the connection the instance stays offline until it is recreated.
Implementation
void goOnline() {
if (!isClosed) {
_withRepo((Repo repo) => repo.resume());
}
}