trArgs method

String trArgs([
  1. List<String?> args = const []
])

Implementation

String trArgs([List<String?> args = const []]) {
  var key = tr;
  if (args.isNotEmpty) {
    for (final arg in args) {
      key = key.replaceFirst(RegExp(r'%s'), arg.toString());
    }
  }
  return key;
}