addCallback method Null safety

void addCallback(
  1. ValueGetter<Future<bool>> callback
)
inherited

Register the callback to be called when the object changes.

If other callbacks have already been registered, they must be removed (with removeCallback) before the callback is next called.

Implementation

void addCallback(ValueGetter<T> callback) => _callbacks.add(callback);