of static method

AtContext of(
  1. BuildContext context
)

Calling AtContext.of(context) in the widget tree will provide you with the nearest instance of AtContext containing all of the getters for this class.

Implementation

static AtContext of(BuildContext context) {
  var atContext = context.dependOnInheritedWidgetOfExactType<AtContext>();
  assert(atContext != null);
  return atContext!;
}