CheckMateCallback typedef Null safety

CheckMateCallback = dynamic Function(Color color)

Implementation

typedef CheckMateCallback(chessjs.Color color);