onTap property

(dynamic Function(int)?) onTap
final

Called when a square is tapped. Note that if a piece is above this square, it will absorb the tap, so both onTap functions need to be handled.

Implementation

final Function(int)? onTap;