@@ -14,7 +14,7 @@ sealed class EmojiDisplay {
14
14
/// The emoji's name, as in [Reaction.emojiName] .
15
15
final String emojiName;
16
16
17
- EmojiDisplay ({required this .emojiName});
17
+ const EmojiDisplay ({required this .emojiName});
18
18
19
19
EmojiDisplay resolve (UserSettings ? userSettings) { // TODO(server-5)
20
20
if (this is TextEmojiDisplay ) return this ;
@@ -30,7 +30,7 @@ class UnicodeEmojiDisplay extends EmojiDisplay {
30
30
/// The actual Unicode text representing this emoji; for example, "🙂".
31
31
final String emojiUnicode;
32
32
33
- UnicodeEmojiDisplay ({required super .emojiName, required this .emojiUnicode});
33
+ const UnicodeEmojiDisplay ({required super .emojiName, required this .emojiUnicode});
34
34
}
35
35
36
36
/// An emoji to display as an image.
@@ -42,7 +42,7 @@ class ImageEmojiDisplay extends EmojiDisplay {
42
42
/// compare [RealmEmojiItem.stillUrl] .
43
43
final Uri ? resolvedStillUrl;
44
44
45
- ImageEmojiDisplay ({
45
+ const ImageEmojiDisplay ({
46
46
required super .emojiName,
47
47
required this .resolvedUrl,
48
48
required this .resolvedStillUrl,
@@ -54,7 +54,7 @@ class ImageEmojiDisplay extends EmojiDisplay {
54
54
/// We do this based on a user preference,
55
55
/// and as a fallback when the Unicode or image approaches fail.
56
56
class TextEmojiDisplay extends EmojiDisplay {
57
- TextEmojiDisplay ({required super .emojiName});
57
+ const TextEmojiDisplay ({required super .emojiName});
58
58
}
59
59
60
60
/// An emoji that might be offered in an emoji picker UI.
@@ -79,7 +79,7 @@ final class EmojiCandidate {
79
79
80
80
final EmojiDisplay emojiDisplay;
81
81
82
- EmojiCandidate ({
82
+ const EmojiCandidate ({
83
83
required this .emojiType,
84
84
required this .emojiCode,
85
85
required this .emojiName,
0 commit comments