finishLoad method

void finishLoad([
  1. IndicatorResult result = IndicatorResult.success,
  2. bool force = false
])

Finish the load task and return the result. result Result of task completion. force Enforced, used to modify the result.

Implementation

void finishLoad(
    [IndicatorResult result = IndicatorResult.success, bool force = false]) {
  assert(controlFinishLoad || force,
      'Please set controlFinishLoad to true, then use. If you want to modify the result, you can set force to true.');
  _state?._footerNotifier._finishTask(result);
}