onLogged method

dynamic onLogged(
  1. Function fn
)

Implementation

onLogged(Function fn) {
  on('logged', (x) => fn());
}