onLevelUp property

void Function(int score)? onLevelUp
getter/setter pair

Called with the new level after a level up.

Implementation

void Function(int level)? onLevelUp;