of static method

ScaffoldState of(
  1. BuildContext context
)

Implementation

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

  return result;
}