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