findFile method Null safety

ArchiveFile? findFile(
  1. String name
)

Find a file with the given name in the archive. If the file isn't found, null will be returned.

Implementation

ArchiveFile? findFile(String name) {
  var index = _fileMap[name];
  return index != null ? files[index] : null;
}