listen method
where
filter the notification,
Implementation
T listen(void Function(T ntf)? onChange, {bool Function(T ntf)? where}) =>
this..addListener(() {
if (where?.call(this) ?? true) onChange?.call(this);
});
where
filter the notification,
T listen(void Function(T ntf)? onChange, {bool Function(T ntf)? where}) =>
this..addListener(() {
if (where?.call(this) ?? true) onChange?.call(this);
});