of static method
The closest instance of this class that encloses the given context.
If there is no enclosing ChannelListHeaderTheme widget, then StreamChatThemeData.channelListHeaderTheme is used.
Typical usage is as follows:
final theme = ChannelListHeaderTheme.of(context);
Implementation
static ChannelListHeaderThemeData of(BuildContext context) {
final channelListHeaderTheme =
context.dependOnInheritedWidgetOfExactType<ChannelListHeaderTheme>();
return channelListHeaderTheme?.data ??
StreamChatTheme.of(context).channelListHeaderTheme;
}