Bookmark class

Constructors

Bookmark({required String key, required String? otherUserUid, required String? chatRoomId, required String? category, required String? postId, required String? commentId, required int createdAt})
Bookmark.fromJson(Map json, String key)
factory
Bookmark.fromValue(dynamic value, String key)
factory

Properties

category String?
getter/setter pair
chatRoomId String?
getter/setter pair
commentId String?
getter/setter pair
createdAt int
final
hashCode int
The hash code for this object.
no setterinherited
isChatRoom bool
no setter
isComment bool
no setter
isPost bool
no setter
isUser bool
no setter
key String
Variables
getter/setter pair
otherUserUid String?
getter/setter pair
postId String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Properties

bookmarksRef ↔ DatabaseReference
getter/setter pair
rootRef ↔ DatabaseReference
Bookmark ( = Favorite )
getter/setter pair

Static Methods

bookmarkChatRoom(String roomId) String
bookmarkComment(String commentId) String
bookmarkPost(String postId) String
bookmarkUser(String otherUserUid) String
commentRef(String commentId) → DatabaseReference
get({String? otherUserUid, String? chatRoomId, String? category, String? postId, String? commentId}) Future<Bookmark?>
postRef(String postId) → DatabaseReference
toggle({required BuildContext context, String? otherUserUid, String? chatRoomId, String? category, String? postId, String? commentId}) Future<bool?>
Toggle bookmark
userRef(String otherUserUid) → DatabaseReference

Constants

node → const String
Paths and Refs