ValueObserverCallback<T extends Object> typedef

ValueObserverCallback<T extends Object> = void Function(T oldValue, T newValue)

A ValueObserverCallback callback

Signature for callbacks that take the old value and current value as arguments. This intended to communicate change

Implementation

typedef ValueObserverCallback<T extends Object> = void Function(
  T oldValue,
  T newValue,
);