on method

void on(
  1. LiveQueryEvent op,
  2. Function callback
)

Implementation

void on(LiveQueryEvent op, Function callback) {
  eventCallbacks[_liveQueryEvent[op.index]] = callback;
}