IfdValue? getTag(int tag) { for (final directory in directories.values) { if (directory.containsKey(tag)) { return directory[tag]; } } return null; }