toggleActive method

  1. @mustCallSuper
E toggleActive()

Toggles the active state and fires the activation hook.

Implementation

@mustCallSuper
E toggleActive() {
  _active = !_active;
  _doOnActivate();
  return self;
}