beginRefreshing method

Future<void> beginRefreshing()

Tells the controller that a refresh operation was started programmatically.

Call this method when an external event source triggers a programmatic refresh of your scrolling view. This method updates the state of the refresh control to reflect the in-progress refresh operation. When the refresh operation ends, be sure to call the endRefreshing method to return the controller to its default state.

Implementation

Future<void> beginRefreshing() async {
  return await _setRefreshing(true);
}