of static method

Returns the StreamEmojiChipThemeData from the current theme context.

This merges the local theme (if any) with the global theme from StreamTheme.

Implementation

static StreamEmojiChipThemeData of(BuildContext context) {
  final localTheme = context.dependOnInheritedWidgetOfExactType<StreamEmojiChipTheme>();
  return StreamTheme.of(context).emojiChipTheme.merge(localTheme?.data);
}