Skip to content

Commit b5f469c

Browse files
committed
emoji [nfc]: Dartdoc EmojiStore.emojiDisplayFor
1 parent 51dbd2c commit b5f469c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/model/emoji.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ 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 for image emojis whose URLs don't parse.
119126
EmojiDisplay emojiDisplayFor({
120127
required ReactionType emojiType,
121128
required String emojiCode,

0 commit comments

Comments
 (0)