tr static method

String tr(
  1. String key, {
  2. String? defaultValue,
  3. Map<String, String> args = const {},
})

translate the given key and possible named arguments that will be interpolated key the key args and named arguments

Implementation

static String tr(String key, {String? defaultValue, Map<String, String> args = const {}}) {
  return instance.translate(key, defaultValue: defaultValue, args: args);
}