onCancel method
取消事件
Implementation
void onCancel(FutureOr<void> Function() action) {
if (!isComplete) {
(_onCancel ??= []).add(action);
}
}
取消事件
void onCancel(FutureOr<void> Function() action) {
if (!isComplete) {
(_onCancel ??= []).add(action);
}
}