onTap property

the function run when press the button

Implementation

final StateFunction<StateTextButton, ButtonState> onTap;