import 'dart:io'; import 'package:justmusic/model/Post.dart'; import 'package:justmusic/services/PostService.dart'; import 'package:tuple/tuple.dart'; class PostViewModel { List _postsFriends = []; List _bestPosts = []; final PostService _postService = PostService(); // Constructor PostViewModel(); // Getters and setters List get postsFriends => _postsFriends; List get bestPosts => _bestPosts; // Methods addPost(String? description, String idMusic, File? image, Tuple2? location) async { await _postService.createPost(description, idMusic, image, location); } List getPostsFriends() { throw new Error(); } List getMorePostsFriends() { throw new Error(); } List getBestPosts() { throw new Error(); } List getMoreBestPosts() { throw new Error(); } }