onNotifyToggle method

void onNotifyToggle()

Implementation

void onNotifyToggle() {
  activated = !activated;
  onToggleClick?.call(activated);
  _notify;
}