refresh method

void refresh()

Implementation

void refresh() {
  if (_onRefresh == null) {
    return;
  }

  onRefresh().then((value) {
    if (_onRefresh == null) {
      return;
    }

    _onRefresh!();
  });
}