BoardThemeConfig constructor

BoardThemeConfig({
  1. Color? boardColor,
  2. String? materialVariety,
  3. String? directory,
  4. String? extension,
})

Implementation

BoardThemeConfig({
  this.boardColor,
  this.materialVariety,
  this.directory,
  this.extension,
}) {
  // Set default values if not provided
  boardColor ??= boardColors.first;
  materialVariety ??= materialsResources.keys.first;
  directory ??= 'packages/chess_interface/assets';
  extension ??= 'png';
}