onPressed property

Function onPressed
final

onPressed should be specified as a required field to indicate the callback.

Implementation

final Function onPressed;