getIcon method

IconData? getIcon(
  1. TypeAlert? type
)

Implementation

IconData? getIcon(TypeAlert? type) {
  switch (type) {
    case TypeAlert.success:
      return Icons.check;
    case TypeAlert.warning:
      return Icons.warning_amber_outlined;
    case TypeAlert.error:
      return Icons.error_outline;
    default:
      return null;
  }
}