structuredSyntaxSuffix property

String? get structuredSyntaxSuffix

Structured syntax suffix, e.g. +zip in application/epub+zip.

Gives a hint on the underlying structure of this media type. See. https://tools.ietf.org/html/rfc6838#section-4.2.8

Implementation

String? get structuredSyntaxSuffix {
  List<String> parts = subtype.split("+");
  return (parts.length > 1) ? "+${parts.last}" : null;
}