onCancel property Null safety

Function onCancel
final

Implementation

final Function onCancel;