get method

String get(
  1. String key, [
  2. dynamic args
])

Returns the string associated to the specified key.

Implementation

String get(String key, [dynamic args]) {
  String? value = _strings[key];
  if (value == null) {
    return notFoundString;
  }

  if (args != null) {
    value = _formatReturnValue(value, args);
  }

  return value;
}