onPressed property Null safety

VoidCallback onPressed
final

Callback on click event

Implementation

final VoidCallback onPressed;