ChessPieceExtension extension

on

Methods

getResource(String materialVariety, {required String directory, required String extension}) Future<Image>

Available on ChessPiece, provided by the ChessPieceExtension extension

Provide directory (e.g, 'assets' or 'assets/materials') if you want to use custom resources. Provide extension (e.g, png, jpg, jpeg) for the images you've inside the resource structured directory.