Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<User> users = await GetWant().getAllUserfromJson();
- UserList().setUsers(users);
- UserList().getUsers().forEach((element) {
- print(element.email);
- });
- List<Post> posts = await GetWant().getAllPostfromJson();
- PostList().setPosts(posts);
- PostList().getPosts().forEach((element) {
- print(element.userName);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement