refresh method

Future<void> refresh()

Programmatically triggers the pull-to-refresh operation.

Opens the indicator header to indicatorHeight and executes onRefresh.

Implementation

Future<void> refresh() async {
  if (_isRefreshing) return;
  if (_refreshCallback != null) {
    await _refreshCallback!();
  }
}