Board constructor
Board({
- required String fen,
- required double size,
- required Color lightSquareColor,
- required Color darkSquareColor,
- BuildPiece? buildPiece,
- BuildSquare? buildSquare,
- BuildCustomPiece? buildCustomPiece,
Implementation
Board({
required this.fen,
required this.size,
required this.lightSquareColor,
required this.darkSquareColor,
BuildPiece? buildPiece,
BuildSquare? buildSquare,
BuildCustomPiece? buildCustomPiece,
}) : buildPiece = Option.fromNullable(buildPiece),
buildSquare = Option.fromNullable(buildSquare),
buildCustomPiece = Option.fromNullable(buildCustomPiece);