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