doConfirm method

void doConfirm(
  1. BuildContext context
)

确定

Implementation

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