of<T extends StateMVC<StatefulWidget>> static method

T? of<T extends StateMVC<StatefulWidget>>(
  1. BuildContext context
)

Supply the 'latest' StateMVC object from the widget tree.

Implementation

static T? of<T extends StateMVC>(BuildContext context) {
  assert(context != null);
  return context.findAncestorStateOfType<T>();
}