maybeOf static method
Implementation
static GBThemeData? maybeOf(BuildContext context) {
_GBInheritedTheme? inheritedTheme;
inheritedTheme = context.dependOnInheritedWidgetOfExactType<_GBInheritedTheme>();
if (inheritedTheme == null) {
final _theme = Theme.of(context);
if (_theme is GBThemeData) {
return _theme;
}
}
return inheritedTheme?.theme.data;
}