onTap property

the function run when press the button

Implementation

final StateFunction<StateButton, ButtonState> onTap;