of static method
- BuildContext context
The data property of the closest instance of this class that encloses the given context.
If there is no enclosing ListTileTheme widget, then ThemeData.listTileTheme is used (see Theme.of).
Typical usage is as follows:
ListTileThemeData theme = ListTileTheme.of(context);
Implementation
static ListTileThemeData of(BuildContext context) {
final ListTileTheme? result = context.dependOnInheritedWidgetOfExactType<ListTileTheme>();
return result?.data ?? Theme.of(context).listTileTheme;
}