update abstract method

void update(
  1. T value, {
  2. required bool add,
})

Adds or removes the value from this notifier.

Subclasses must call notifyUpdateListeners after changing the value.

Implementation

void update(T value, {required bool add});