onCancel property Null safety

VoidCallback? onCancel
final

Implementation

final VoidCallback? onCancel;