doConfirm method
确定
Implementation
void doConfirm(BuildContext context) async {
if (onConfirmBefore != null && !(await onConfirmBefore!(this, selecteds))) {
return; // Cancel;
}
if (context.mounted) {
Navigator.of(context).pop<List<int>>(selecteds);
}
if (onConfirm != null) onConfirm!(this, selecteds);
_widget = null;
}