SquareUI constructor Null safety

const SquareUI(
  1. {Key? key,
  2. required String squareName,
  3. required ValueListenable<SquareModel> squareNotifier,
  4. required double size,
  5. required ChessboardController controller,
  6. required MoveCallback? onMove}
)

Implementation

const SquareUI({
  Key? key,
  required this.squareName,
  required this.squareNotifier,
  required this.size,
  required this.controller,
  required this.onMove,
}) : super(key: key);