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