EmojiCell.fromConfig constructor

EmojiCell.fromConfig({
  1. required Emoji emoji,
  2. required double emojiSize,
  3. required double emojiBoxSize,
  4. CategoryEmoji? categoryEmoji,
  5. required OnEmojiSelected onEmojiSelected,
  6. OnSkinToneDialogRequested? onSkinToneDialogRequested,
  7. 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;