maybeOf static method

AdaptiveData? maybeOf(
  1. BuildContext context
)

Gets the nearest AdaptiveData from the widget tree, or null if not found.

Implementation

static AdaptiveData? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<AdaptiveData>();
}