BoardThemeConfig class

This class is used to store the board theme configuration It contains the boardColor and the materialVariety (should be available in this package's assets)

Constructors

BoardThemeConfig({Color? boardColor, String? materialVariety, String? directory, String? extension})
BoardThemeConfig.fromMap(Map<String, dynamic> map)
factory

Properties

boardColor Color?
getter/setter pair
directory String?
getter/setter pair
extension String?
The extension of the image file. Default is png.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
materialVariety String?
To add your own resources, refer to the assets folder structure inside this package. If your resources includes sparate materials for each color, add to path like this: "assets/your_materials_name/black/king.png" (or /white/ for white pieces). and same for all other pieces. If you've simple and fillable png recourses, simply add them in "assets/your_materials_name/bishop.png" path.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited