showErrorAndDismiss method

Future showErrorAndDismiss({
  1. required String text,
})

show error icon with text and dismiss automatic

Implementation

Future showErrorAndDismiss({required String text}) async {
  await this.showAndDismiss(ProgressHudType.error, text);
}