trParams method

String trParams([
  1. Map<String, String> params = const {}
])

Implementation

String trParams([Map<String, String> params = const {}]) {
  var trans = tr;
  if (params.isNotEmpty) {
    params.forEach((key, value) {
      trans = trans.replaceAll('@$key', value);
    });
  }
  return trans;
}