of static method

The data from the closest instance of this class that encloses the given context.

Typical usage is as follows:

DrivenSpinnerThemeData theme = DrivenSpinnerTheme.of(context);

Implementation

static DrivenSpinnerThemeData of(BuildContext context) {
  final parentTheme = DrivenSpinnerTheme.maybeOf(context);
  if (parentTheme != null) return parentTheme;

  return const DrivenSpinnerThemeData();
}