Engagement class

User activity statistics.

Annotations
  • @freezed

Constructors

Engagement(int viewCount, int? likeCount, int? dislikeCount)
const
factory

Properties

avgRating num
Average user rating in stars (1 star to 5 stars). Returns -1 if likeCount or dislikeCount is null.
no setter
copyWith → $EngagementCopyWith<Engagement>
no setterinherited
dislikeCount int?
Dislike count.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
likeCount int?
Like count.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewCount int
View count.
no setterinherited

Methods

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