onCancel property Null safety

(dynamic Function()?) onCancel
read / write

Implementation

Function()? onCancel;