maybeOf static method

ScreenInfoData? maybeOf(
  1. BuildContext context
)

Implementation

static ScreenInfoData? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<ScreenInfo>()
      ?.screenInfoData;
}