onPressed property Null safety

VoidCallback onPressed
final

Implementation

final VoidCallback onPressed;