decodeKey method

String? decodeKey(
  1. String? value, {
  2. Encoding? charset,
})

Convenience: decode a key and coerce the result to String (or null).

Implementation

String? decodeKey(
  String? value, {
  Encoding? charset,
}) =>
    decode(
      value,
      charset: charset ?? this.charset,
      kind: DecodeKind.key,
    )?.toString();