t method

String t(
  1. String key, [
  2. Map<String, Object?> args = const {}
])

Looks up key in the nearest LocalizationScope; without one, gives key itself (with args filled in).

Implementation

String t(String key, [Map<String, Object?> args = const {}]) =>
    LocalizationScope.maybeOf(this)?.t(key, args: args) ??
    (args.isEmpty ? key : StringInterpolator.process(key, args));