of method Null safety

InheritedAuthButton? of(
  1. BuildContext context
)

The data from the InheritedAuthButton instance that encloses the given context.

This of method is typical in others InheritedWidgets.

Implementation

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