onPromote property

Future<PieceType?> Function() onPromote
final

Handler for when user wants to make a promotion on board.

Implementation

final Future<PieceType?> Function() onPromote;