contentType property

ContentType? contentType

Get the contentType header from the current

Implementation

ContentType? get contentType {
  final mimeType = this.mimeType;
  if (mimeType != null) {
    final split = mimeType.split('/');
    return ContentType(split[0], split[1]);
  } else {
    return null;
  }
}