t method

String t(
  1. String messageId, {
  2. Map<String, Object>? args,
  3. String? locale,
})

Shorthand alias for translate.

final title = i18n.t('nav.home');

Implementation

String t(
  String messageId, {
  Map<String, Object>? args,
  String? locale,
}) =>
    translate(messageId, args: args, locale: locale);