of static method

Constants? of(
  1. BuildContext context
)

Implementation

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