onPressed property

VoidCallback? onPressed
final

点击事件回调

onPressed 不为null时将点击态将变得有效

Implementation

final VoidCallback? onPressed;