of static method
Returns the data from the closest ToggleButtonTheme ancestor. If there is no ancestor, it returns FluentThemeData.toggleButtonTheme. Applications can assume that the returned value will not be null.
Typical usage is as follows:
ToggleButtonThemeData theme = ToggleButtonTheme.of(context);
Implementation
static ToggleButtonThemeData of(BuildContext context) {
return ToggleButtonThemeData.standard(FluentTheme.of(context)).merge(
_getInheritedThemeData(context),
);
}