maybeOf static method

DialogStackState? maybeOf(
  1. BuildContext context
)

Returns the nearest DialogStackState if available.

Implementation

static DialogStackState? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<_DialogStackScope>()
      ?.state;
}