of static method

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

Defaults to FluentThemeData.toggleSwitchTheme

Typical usage is as follows:

ToggleSwitchThemeData theme = ToggleSwitchTheme.of(context);

Implementation

static ToggleSwitchThemeData of(BuildContext context) {
  assert(debugCheckHasFluentTheme(context));
  return ToggleSwitchThemeData.standard(FluentTheme.of(context)).merge(
    _getInheritedToggleSwitchThemeData(context),
  );
}