of static method

StyleProvider? of(
  1. BuildContext context
)

Get instance of style provider, can be null if you're not providing one.

Implementation

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