refresh method

Future<void> refresh({
  1. bool resetValue = true,
})

Refresh the data presented by this PagedValueNotifier.

Resets the value to the initial value in case resetValue is true.

Note: This API is intended for UI-driven refresh signals, such as swipe-to-refresh.

Implementation

Future<void> refresh({bool resetValue = true}) {
  if (resetValue) value = _initialValue;
  return doInitialLoad();
}