File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,12 +105,12 @@ enum RatingStyle {
105
105
/// A rating to attach to a MediaItem.
106
106
class Rating {
107
107
final RatingStyle _type;
108
- dynamic _value;
108
+ final dynamic _value;
109
109
110
- Rating ._internal (this ._type, this ._value);
110
+ const Rating ._internal (this ._type, this ._value);
111
111
112
112
/// Create a new heart rating.
113
- Rating .newHeartRating (bool hasHeart) : this ._internal (RatingStyle .heart, hasHeart);
113
+ const Rating .newHeartRating (bool hasHeart) : this ._internal (RatingStyle .heart, hasHeart);
114
114
115
115
/// Create a new percentage rating.
116
116
factory Rating .newPercentageRating (double percent) {
@@ -128,10 +128,10 @@ class Rating {
128
128
}
129
129
130
130
/// Create a new thumb rating.
131
- Rating .newThumbRating (bool isThumbsUp) : this ._internal (RatingStyle .thumbUpDown, isThumbsUp);
131
+ const Rating .newThumbRating (bool isThumbsUp) : this ._internal (RatingStyle .thumbUpDown, isThumbsUp);
132
132
133
133
/// Create a new unrated rating.
134
- Rating .newUnratedRating (RatingStyle ratingStyle) : this ._internal (ratingStyle, null );
134
+ const Rating .newUnratedRating (RatingStyle ratingStyle) : this ._internal (ratingStyle, null );
135
135
136
136
/// Return the rating style.
137
137
RatingStyle getRatingStyle () => _type;
You can’t perform that action at this time.
0 commit comments