of static method

DisplayRange of(
  1. BuildContext context
)

The display range from the closest DisplayRangeProvider instance that encloses the given context.

Implementation

static DisplayRange of(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<_InheritedDisplayRange>()!
    .displayRange;