of<T extends DataState<StatefulWidget>> static method

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

Implementation

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