RatingMessage class

A rating to attach to a MediaItemMessage.

Constructors

RatingMessage({required RatingStyleMessage type, required Object? value})
const
RatingMessage.fromMap(Map<String, dynamic> raw)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasHeart bool
Returns true if the rating is "heart selected" or false if the rating is "heart unselected", if the rating style is not RatingStyleMessage.heart or if it is unrated.
no setter
isRated bool
Return whether there is a rating value available.
no setter
isThumbUp bool
Returns true if the rating is "thumb up" or false if the rating is "thumb down", if the rating style is not RatingStyleMessage.thumbUpDown or if it is unrated.
no setter
percentRating double
Returns a percentage rating value greater or equal to 0.0, or a negative value if the rating style is not percentage-based, or if it is unrated.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
starRating int
Returns a rating value greater or equal to 0.0, or a negative value if the rating style is not star-based, or if it is unrated.
no setter
type RatingStyleMessage
final
value Object?
final

Methods

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

Operators

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