of static method

Implementation

static EmergentThemeInherited? of(BuildContext context) {
  try {
    return context
        .dependOnInheritedWidgetOfExactType<EmergentThemeInherited>();
  } catch (t) {
    return null;
  }
}