finishRefresh method
Finish the refresh task and return the result.
result
Result of task completion.
Implementation
void finishRefresh([IndicatorResult result = IndicatorResult.succeeded]) {
assert(controlFinishRefresh,
'Please set controlFinishRefresh to true, then use.');
_state?._headerNotifier._finishTask(result);
}