of static method

BreakpointData? of(
  1. BuildContext context
)

The breakPointData from the closest Breakpoint instance that encloses the given context.

Implementation

static BreakpointData? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<Breakpoint>()
      ?.breakpointData;
}