show method
The function used to show the stylish dialog
StylishDialog dialog = StylishDialog(
context: context,
alertType: StylishDialogType.PROGRESS,
...
);
dialog.show();
Implementation
Future<void> show() => showDialog(
context: context,
barrierDismissible: dismissOnTouchOutside,
builder: (context) {
controller?.setValue = DialogStatus.Showing;
return StatefulBuilder(builder: (context, setState) {
_stateSetter = setState;
return _buildDialog;
});
},
).then((value) {
if (value == null) {
// if (controller != null) {
controller?.setValue = DialogStatus.Dismissed;
// controller!.listener!(DialogStatus.Dismissed);
// }
}
});