of static method
The CheckboxTileTheme from the closest instance of this class that encloses the given context.
Typical usage is as follows:
CheckboxTileThemeData theme = CheckboxTileTheme.of(context);
Implementation
static CheckboxTileThemeData of(BuildContext context) {
final parentTheme =
context.dependOnInheritedWidgetOfExactType<CheckboxTileTheme>();
if (parentTheme != null) return parentTheme.data;
final globalTheme = Theme.of(context).extension<CheckboxTileThemeData>();
final defaultTheme = CheckboxTileThemeData.defaults(context);
return defaultTheme.merge(globalTheme);
}