trArgs method

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

Implementation

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

  return str;
}