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