dispatchFunction method

  1. @override
void dispatchFunction(
  1. RefreshWrapperRenderViewModel viewModel,
  2. String functionName,
  3. VoltronArray array, {
  4. Promise? promise,
})
override

Implementation

@override
void dispatchFunction(
  RefreshWrapperRenderViewModel viewModel,
  String functionName,
  VoltronArray array, {
  Promise? promise,
}) {
  super.dispatchFunction(viewModel, functionName, array, promise: promise);
  if (kFuncRefreshComplected == functionName) {
    viewModel.refreshEventDispatcher.refreshComplected();
  } else if (kFuncStartRefresh == functionName) {
    viewModel.refreshEventDispatcher.startRefresh();
  }
}