UIPiece constructor

const UIPiece({
  1. Key? key,
  2. required String squareName,
  3. required BoardColor squareColor,
  4. required Piece piece,
  5. required double size,
})

Implementation

const UIPiece({
  Key? key,
  required this.squareName,
  required this.squareColor,
  required this.piece,
  required this.size,
}) : super(key: key);