getToastIcon method
Returns the appropriate icon based on the ToastType.
Implementation
IconData getToastIcon(ToastType type) {
switch (type) {
case ToastType.success:
return Icons.check_circle_outline_rounded;
case ToastType.info:
return Icons.info_outline;
case ToastType.warning:
return Icons.warning_amber_rounded;
case ToastType.error:
return Icons.error_outline_rounded;
}
}