of static method

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

Typical usage is as follows:

MongolListTileTheme theme = MongolListTileTheme.of(context);

Implementation

static MongolListTileTheme of(BuildContext context) {
  final MongolListTileTheme? result =
      context.dependOnInheritedWidgetOfExactType<MongolListTileTheme>();
  return result ?? const MongolListTileTheme(child: SizedBox());
}