getIconStyle method

IconStyle getIconStyle(
  1. String attachment
)

Implementation

IconStyle getIconStyle(String attachment) {
  switch (attachment) {
    case Constants.attachmentTypeDocument:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.documentStyle;
    case Constants.attachmentTypeCamera:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.cameraStyle;
    case Constants.attachmentTypeGallery:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.galleryStyle;
    case Constants.attachmentTypeAudio:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.audioStyle;
    case Constants.attachmentTypeContact:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.contactStyle;
    case Constants.attachmentTypeLocation:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.locationStyle;
    default:
      return AppStyleConfig.chatPageStyle.attachmentViewStyle.documentStyle;
  }
}