Board constructor

Board({
  1. required String fen,
  2. required double size,
  3. required Color lightSquareColor,
  4. required Color darkSquareColor,
  5. BuildPiece? buildPiece,
  6. BuildSquare? buildSquare,
  7. 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);