getExtension function

  1. @deprecated
String getExtension (
  1. String contentType
)

Get the extension type of the file

Implementation

@deprecated
String getExtension(String contentType) {
  if (_extensions.containsKey(contentType) &&
      _extensions[contentType].containsKey('extensions')) {
    return _extensions[contentType]['extensions'].first;
  }
  return null;
}