maybeOf static method
Returns the UIProThemeData from the closest UIProTheme ancestor, or null if there is no ancestor.
Useful when you want to check if a theme is available.
Implementation
static UIProThemeData? maybeOf(BuildContext context) {
final UIProTheme? result = context
.dependOnInheritedWidgetOfExactType<UIProTheme>();
return result?.data;
}