Skip to content

Commit 86a5b28

Browse files
committed
emoji [nfc]: Dartdoc EmojiStore.emojiDisplayFor
1 parent 3781b30 commit 86a5b28

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/model/emoji.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ final class EmojiCandidate {
116116

117117
/// The portion of [PerAccountStore] describing what emoji exist.
118118
mixin EmojiStore {
119+
/// An [EmojiDisplay] for the specified emoji.
120+
///
121+
/// Use [EmojiDisplay.resolve] on the result to apply the user's [Emojiset]
122+
/// setting.
123+
///
124+
/// May be a [TextEmojiDisplay] even if the emojiset is not [Emojiset.text];
125+
/// this happens when we can't understand the data that describes the emoji
126+
/// (e.g. when an image emoji's URL doesn't parse)..
119127
EmojiDisplay emojiDisplayFor({
120128
required ReactionType emojiType,
121129
required String emojiCode,

0 commit comments

Comments
 (0)