of static method
Returns the configuration data from the closest YaruPageIndicatorTheme
ancestor. If there is no ancestor, it returns null
.
Implementation
static YaruPageIndicatorThemeData? of(BuildContext context) {
final t =
context.dependOnInheritedWidgetOfExactType<YaruPageIndicatorTheme>();
return t?.data ?? Theme.of(context).extension<YaruPageIndicatorThemeData>();
}