readText method

String? readText(
  1. String name
)

The entry name, decoded as UTF-8 (malformed bytes replaced), or null when there is no such entry.

Implementation

String? readText(String name) {
  final bytes = readBytes(name);
  return bytes == null ? null : utf8.decode(bytes, allowMalformed: true);
}