onPressed property

dynamic Function(AnimationController? controller) onPressed
final

Function that will be called at the on pressed event.

This will grant access to its AnimationController so that the animation can be controlled based on the need.

Implementation

final Function(AnimationController? controller) onPressed;