onPressed property Null safety

(dynamic Function?()?) onPressed
final

Implementation

final Function()? onPressed;