onNotePressed property

(dynamic Function(int, double)?) onNotePressed
final

Called when a key is pressed/touched. Parameters are the note of the key (int) and the vertical position of the touch on the key (double)

Implementation

final Function(int, double)? onNotePressed;