getBackground method
Implementation
Color getBackground(TypeAlert? type) {
switch (type) {
case TypeAlert.success:
return widget.successBackground ?? Colors.green;
case TypeAlert.warning:
return widget.warningBackground ?? Color(0xFFCE863D);
case TypeAlert.error:
return widget.errorBackground ?? Colors.red;
default:
return Colors.green;
}
}