SocialMediaService class

Example service showing how these models handle enum updates gracefully

Constructors

SocialMediaService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createPost(PostModel post) Future<String>
getUserNotifications(String userId) Future<List<NotificationModel>>
getUserPosts(String userId) Future<List<PostModel>>
getUserProfile(String userId) Future<UserProfileModel?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publishPost(String postId) Future<void>
toString() String
A string representation of this object.
inherited
updatePost(String postId, PostModel post) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited