onPressed property
当按下按钮时,会触发该函数。如果未设置该函数,按钮将进入不可用状态。
When the button is pressed, the function is triggered.If this function is not set, the button will enter an unavailable state.
Implementation
final VoidCallback? onPressed;
当按下按钮时,会触发该函数。如果未设置该函数,按钮将进入不可用状态。
When the button is pressed, the function is triggered.If this function is not set, the button will enter an unavailable state.
final VoidCallback? onPressed;