registerChangeCallback method
Registers for a callback that will be invoked when the entry has changed.
Implementation
@override
Disposable? registerChangeCallback(void Function(Object? state) callback,
[Object? state]) =>
token.register(
(state) {
try {
callback(state);
} catch (e) {
_activeChangeCallbacks = false;
}
},
);