EmojiCell.fromConfig constructor
EmojiCell.fromConfig({
- required Emoji emoji,
- required double emojiSize,
- required double emojiBoxSize,
- CategoryEmoji? categoryEmoji,
- required OnEmojiSelected onEmojiSelected,
- OnSkinToneDialogRequested? onSkinToneDialogRequested,
- required Config config,
Constructor that can retrieve as much information as possible from Config
Implementation
EmojiCell.fromConfig(
{required this.emoji,
required this.emojiSize,
required this.emojiBoxSize,
this.categoryEmoji,
required this.onEmojiSelected,
this.onSkinToneDialogRequested,
required Config config})
: buttonMode = config.emojiViewConfig.buttonMode,
enableSkinTones = config.skinToneConfig.enabled,
textStyle = config.emojiTextStyle,
skinToneIndicatorColor = config.skinToneConfig.indicatorColor;