value method

String? value(
  1. String key
)

Reads key from the first table that has it, or null when no table does.

Use stringTables directly when the image is multi-language and the choice of table matters.

Implementation

String? value(String key) {
  for (final table in stringTables) {
    final value = table.values[key];
    if (value != null) return value;
  }
  return null;
}