onDone method

dynamic onDone()

Implementation

onDone() async {
  bool pass = widget.onWillDone?.call(selectedDates) ?? true;
  if (pass) {
    pop();
    widget.onDone.call(selectedDates);
  }
}