of static method

AdaptiveState? of(
  1. BuildContext context
)

Implementation

static AdaptiveState? of(BuildContext context) {
  _AdaptiveState? state = context.findAncestorStateOfType<_AdaptiveState>();

  return state?.state;
}