of static method

_DynamicThemeState? of(
  1. BuildContext context
)

Returns the data from the closest DynamicTheme instance that encloses the given context.

Implementation

static _DynamicThemeState? of(BuildContext context) {
  return context.findAncestorStateOfType<_DynamicThemeState>();
}