onPressed property Null safety

VoidCallback? onPressed
final

button pressed callback

Implementation

final VoidCallback? onPressed;