Skip to content

May NyPullToRefresh could be better #121

Answered by agordn52
jitendravn asked this question in General
Discussion options

You must be logged in to vote

Hi @jitendravn,

The NyPullToRefresh widget expects a return type of List in the data parameter.
You should modify your code to this.

data: (int iteration) async {
   YourDataType userCall = await api<HomePageApiService>((request) async => request.userCalllogs(iteration));
   return userCall.data;
},

Hope that helps.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@agordn52
Comment options

Answer selected by jitendravn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants