of static method

DefaultSvgTheme? of(
  1. BuildContext context
)

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

Typical usage is as follows:

DefaultSvgTheme theme = DefaultSvgTheme.of(context);

Implementation

static DefaultSvgTheme? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<DefaultSvgTheme>();
}