start method

void start()

Starts observing the app lifecycle. Safe to call more than once.

Throws StateError after dispose.

Implementation

void start() {
  if (_disposed) throw StateError('AppLockManager has been disposed');
  if (_started) return;
  _started = true;
  WidgetsBinding.instance.addObserver(this);
}