assetSVG method

String assetSVG(
  1. ContentType contentType
)

Reflecting proper icon based on the contentType

Implementation

String assetSVG(ContentType contentType) {
  switch (contentType) {
    case ContentType.failure:

      /// failure will show `CROSS`
      return AssetsPath.failure;
    case ContentType.success:

      /// success will show `CHECK`
      return AssetsPath.success;
    case ContentType.warning:

      /// warning will show `EXCLAMATION`
      return AssetsPath.warning;
    case ContentType.help:

      /// help will show `QUESTION MARK`
      return AssetsPath.help;
    default:
      return AssetsPath.failure;
  }
}