charset property

String? charset

Finds the first Charset declared in the media types' charset parameter.

Implementation

String? get charset => mediaTypes.mapNotNull((it) => it.charset).firstOrNull;