UISquare constructor

const UISquare({
  1. Key? key,
  2. required Square square,
  3. required void onClick(
    1. HalfMove move
    ),
  4. required void onDrop(
    1. ShortMove move
    ),
  5. Color? highlight,
})

Implementation

const UISquare({
  Key? key,
  required this.square,
  required this.onClick,
  required this.onDrop,
  this.highlight,
}) : super(key: key);