tr function

String tr(
  1. String messageId, [
  2. Map<String, Object>? args
])

Shorthand translation alias accepting positional args.

Evaluates messageId on the global BloomI18n.instance.

final text = tr('welcome_banner', {'user': 'Bob'});

See also:

  • t, the named-parameter translation function.

Implementation

String tr(
  String messageId, [
  Map<String, Object>? args,
]) =>
    BloomI18n.instance.t(messageId, args: args);