of static method

DebugAppState of(
  1. BuildContext context
)

Implementation

static DebugAppState of(BuildContext context) {
  final state = context.findAncestorStateOfType<DebugAppState>();
  assert(state != null, 'No DebugAppState found in context');
  return state!;
}