start method

void start({
  1. bool clearHistory = false,
})

Starts the observer to store events.

Implementation

void start({bool clearHistory = false}) {
  if (clearHistory) {
    clear();
  }
  listening = true;
}