icon property

IconData get icon

Implementation

IconData get icon {
  switch (this) {
    case SnackBarType.warning:
      return FontAwesomeIcons.triangleExclamation;
    case SnackBarType.info:
      return FontAwesomeIcons.circleInfo;
    case SnackBarType.error:
      return FontAwesomeIcons.circleExclamation;
    case SnackBarType.success:
      return FontAwesomeIcons.solidCircleCheck;
  }
}