of static method

Implementation

static BaseChatState? of(BuildContext context) {
  return context.findAncestorStateOfType<BaseChatState>();
}