interceptChange method
Implementation
WillChangeNotification<T>? interceptChange(WillChangeNotification<T> change) {
if (!_canHandle(change)) {
return change;
}
return _context.untracked(() {
WillChangeNotification<T>? nextChange = change;
for (final interceptor in _handlers?.toList(growable: false) ?? []) {
nextChange = (interceptor as Interceptor<T>)(nextChange!);
if (nextChange == null) {
break;
}
}
return nextChange;
});
}