of<T extends DataStatelessWidget> static method

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

Implementation

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