of static method

SimpleListTileTheme of(
  1. BuildContext context,
  2. Widget child
)

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

Typical usage is as follows:

ListTileTheme theme = ListTileTheme.of(context);

Implementation

static SimpleListTileTheme of(BuildContext context, Widget child) {
  return context.dependOnInheritedWidgetOfExactType<SimpleListTileTheme>() ??
      SimpleListTileTheme(child: child);
}