of static method
The data from the closest instance of this class that encloses the given context.
Typical usage is as follows:
DrivenSwitcherThemeData theme = DrivenSwitcherTheme.of(context);
Implementation
static DrivenSwitcherThemeData of(BuildContext context) {
final parentTheme = DrivenSwitcherTheme.maybeOf(context);
if (parentTheme != null) return parentTheme;
return const DrivenSwitcherThemeData();
}