displayAlert method
Display the alert in a dialog form
context
the app context to display the alert
Implementation
displayAlert(BuildContext context) {
showDialog(
context: context,
barrierDismissible: this.cancelable,
builder: (context) {
return AlertDialog(
content: this,
backgroundColor: Colors.transparent,
contentPadding: EdgeInsets.all(0),
);
});
}