of static method
Retrieves the OudsThemeContract from the widget tree.
This allows access to the theme configuration (colors, typography, etc.).
context The BuildContext from which to retrieve the theme.
returns The OudsThemeContract associated with the current context.
Implementation
static OudsThemeContract of(BuildContext context) {
final OudsTheme? result = context.dependOnInheritedWidgetOfExactType<OudsTheme>();
assert(result != null, 'No OudsTheme found in context!');
return result!.themeContract;
}