onPressed property

void Function(bool isStart)? onPressed
final

You can do what you want after pressed.

Implementation

final void Function(bool isStart)? onPressed;