createPost method

  1. @override
Future<TimelinePost> createPost(
  1. TimelinePost post
)

Implementation

@override
Future<TimelinePost> createPost(TimelinePost post) async {
  posts.add(
    post.copyWith(
      creator: const TimelinePosterUserModel(
        userId: 'test_user',
        imageUrl:
            'https://cdn.britannica.com/68/143568-050-5246474F/Donkey.jpg?w=400&h=300&c=crop',
        firstName: 'Ico',
        lastName: 'Nica',
      ),
    ),
  );
  notifyListeners();
  return post;
}