of static method
Use this method to get the current StreamChatCoreState instance
Implementation
static StreamChatCoreState of(BuildContext context) {
StreamChatCoreState? streamChatState;
streamChatState = context.findAncestorStateOfType<StreamChatCoreState>();
assert(
streamChatState != null,
'You must have a StreamChat widget at the top of your widget tree',
);
return streamChatState!;
}