value property

  1. @override
PagingState<PageKeyType, ItemType> value
inherited

The current value stored in this notifier.

When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.

Implementation

@override
T get value => _value;
  1. @override
void value=(PagingState<PageKeyType, ItemType> newValue)
override

Corresponding to ValueNotifier.value.

Implementation

@override
set value(PagingState<PageKeyType, ItemType> newValue) {
  if (value.status != newValue.status) {
    notifyStatusListeners(newValue.status);
  }

  super.value = newValue;
}