close method

void close({
  1. int? delay = 0,
})

close Closes the progress dialog.

Implementation

void close({int? delay = 0}) {
  if (delay == 0 || delay == null) {
    _closeDialog();
    return;
  }
  Future.delayed(Duration(milliseconds: delay), () {
    _closeDialog();
  });
}