of static method

Implementation

static YaruNavigationPageThemeData of(BuildContext context) {
  final theme =
      context.dependOnInheritedWidgetOfExactType<YaruNavigationPageTheme>();
  return theme?.data ??
      Theme.of(context).extension<YaruNavigationPageThemeData>() ??
      YaruNavigationPageThemeData.fallback(context);
}