Engagement class Null safety

User activity statistics.

Annotations

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.
read-only
copyWith → $EngagementCopyWith<Engagement>
@JsonKey(ignore: true)read-onlyinherited
dislikeCount int?
Dislike count.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
likeCount int?
Like count.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
viewCount int
View count.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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