of static method

Implementation

static ThemeManagerState of(BuildContext context) {
  return context.findAncestorStateOfType<State<ThemeManager>>()
      as ThemeManagerState;
}