HeroControllerScope constructor Null safety

const HeroControllerScope(
  1. {Key? key,
  2. required HeroController controller,
  3. required Widget child}
)

Creates a widget to host the input controller.

Implementation

const HeroControllerScope({
  super.key,
  required HeroController this.controller,
  required super.child,
}) : assert(controller != null);