of static method
The data from the closest SfChatTheme instance that encloses the given context.
Defaults to SfThemeData.chatThemeData if there is no SfChatTheme in the given build context.
Implementation
static SfChatThemeData of(BuildContext context) {
final SfChatTheme? chatTheme =
context.dependOnInheritedWidgetOfExactType<SfChatTheme>();
return chatTheme?.data ?? SfTheme.of(context).chatThemeData;
}