EmojiGifPickerIcon constructor

EmojiGifPickerIcon({
  1. Key? key,
  2. dynamic onBackSpacePressed()?,
  3. void onEmojiSelected(
    1. Category? category,
    2. Emoji emoji
    )?,
  4. void onGifSelected(
    1. GiphyGif? gif
    )?,
  5. Widget? keyboardIcon,
  6. required String id,
  7. TextEditingController? controller,
  8. bool viewGif = true,
  9. bool viewEmoji = true,
  10. bool? fromStack,
  11. required Icon icon,
  12. Color? hoveredBackgroundColor,
  13. Color? backgroundColor,
})

Implementation

EmojiGifPickerIcon(
    {super.key,
    this.onBackSpacePressed,
    this.onEmojiSelected,
    this.onGifSelected,
    Widget? keyboardIcon,
    required this.id,
    this.controller,
    this.viewGif = true,
    this.viewEmoji = true,
    bool? fromStack,
    required this.icon,
    Color? hoveredBackgroundColor,
    Color? backgroundColor})
    : fromStack = fromStack ?? (Platform.I.isMobile ? false : true),
      hoveredBackgroundColor = hoveredBackgroundColor ??
          Get.find<MenuStateController>()
              .menuColors
              .iconHoveredBackgroundColor,
      backgroundColor = backgroundColor ??
          Get.find<MenuStateController>().menuColors.iconBackgroundColor,
      keyboardIcon = keyboardIcon ??
          Icon(
            Icons.keyboard,
            size: icon.size,
            color: icon.color,
          );