Like class

Support like only. Not dislike. See README.md for more information.

Constructors

Like({required DatabaseReference parentReference, List<String> likedBy = const [], String? id})
Like.fromJson(Map<String, dynamic> json, String id)
factory
Like.fromSnapshot(DataSnapshot snapshot)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pair
likedBy ↔ List<String>
getter/setter pair
likeRef → DatabaseReference
Like document reference. The document ID is the same as the target document ID.
no setter
parentReference → DatabaseReference
original document reference. It is called 'target document reference'.
final
ref → DatabaseReference
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

like() → Future<void>
Like (or dislike)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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