maybeOf static method
Returns the nearest DialogStackState if available.
Implementation
static DialogStackState? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<_DialogStackScope>()
?.state;
}
Returns the nearest DialogStackState if available.
static DialogStackState? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<_DialogStackScope>()
?.state;
}