of static method

Returns config from the nearest FirstRunThemeScope.

Implementation

static FirstRunConfig of(BuildContext context) {
  return context
          .dependOnInheritedWidgetOfExactType<FirstRunThemeScope>()
          ?.config ??
      const FirstRunConfig();
}