t method

String t(
  1. String key, {
  2. Map<String, Object?> params = const {},
  3. int? pluralCount,
})

Translates key; returns the resolved text (the key itself when missing — never blanks).

Implementation

String t(
  String key, {
  Map<String, Object?> params = const {},
  int? pluralCount,
}) => port.translate(key, params: params, pluralCount: pluralCount).text;