The argument type 'Future<void>' can't be assigned to the parameter type 'Future<void> Function()' – Flutter
There is a function Future<void> refresh({bool value = false}) async { changeUsers(await _service.loadUsers()); if (value) return; ... } in view I can use it the way return RefreshIndicator( onRefresh: refresh, ... but if I need to pass named parameter return…