maybeOf static method

ScaffoldState? maybeOf(
  1. BuildContext context
)

Implementation

static ScaffoldState? maybeOf(BuildContext context) {
  final result = context
      .findAncestorStateOfType<_NomoScaffoldState>()
      ?.scaffoldKey
      .currentState;

  return result;
}