dataOf<T> static method

T? dataOf<T>(
  1. BuildContext context
)

Implementation

static T? dataOf<T>(BuildContext context) {
  DataWidget<T>? w = context.dependOnInheritedWidgetOfExactType<DataWidget<T>>();
  return w?.data;
}