of static method

ControlsState of(
  1. BuildContext context
)

Implementation

static ControlsState of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<ControlsState>()!;
}