maybeOf static method
Gets the nearest AdaptiveData from the widget tree, or null if not found.
Implementation
static AdaptiveData? maybeOf(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<AdaptiveData>();
}
Gets the nearest AdaptiveData from the widget tree, or null if not found.
static AdaptiveData? maybeOf(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<AdaptiveData>();
}