assetSVG method

String assetSVG(
  1. ContentType contentType
)

Reflecting proper icon based on the contentType

Implementation

String assetSVG(ContentType contentType) {
  if (contentType == ContentType.failure) {
    /// failure will show `CROSS`
    return AssetsPath.failure;
  } else if (contentType == ContentType.success) {
    /// success will show `CHECK`
    return AssetsPath.success;
  } else if (contentType == ContentType.warning) {
    /// warning will show `EXCLAMATION`
    return AssetsPath.warning;
  } else if (contentType == ContentType.help) {
    /// help will show `QUESTION MARK`
    return AssetsPath.help;
  } else {
    return AssetsPath.failure;
  }
}