of static method

Implementation

static YaruTitleBarThemeData of(BuildContext context) {
  final theme =
      context.dependOnInheritedWidgetOfExactType<YaruTitleBarTheme>();
  return theme?.data ??
      Theme.of(context).extension<YaruTitleBarThemeData>() ??
      const YaruTitleBarThemeData();
}