onCancel property Null safety

(FutureOr<void> Function?()?) onCancel
final

Implementation

final FutureOr<void> Function()? onCancel;