of<T extends ModelState> static method

T? of<T extends ModelState>(
  1. BuildContext context
)
override

Implementation

static T? of<T extends ModelState>(BuildContext context) {
  return context.findAncestorStateOfType<T>();
}