of static method
Returns the configuration data from the closest SpinBoxTheme
ancestor. If there is no ancestor, it returns null
.
Typical usage is as follows:
SpinBoxThemeData theme = SpinBoxTheme.of(context);
Implementation
static SpinBoxThemeData? of(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<SpinBoxTheme>()?.data;
}