type property

String get type

Implementation

String get type {
  String extension = split('.').last.toLowerCase();
  if (crmSupportedFormats[extension] != null) {
    return crmSupportedFormats[extension]?.split("/").first ?? "application";
  }
  return "application";
}