applyParams method
Replaces every ${param} with the given parameter
Implementation
String applyParams(Map<String, Object> param) {
return replaceDartNormalizedInterpolation(replacer: (match) {
final nodeParam = match.substring(2, match.length - 1);
final providedParam = param[nodeParam];
if (providedParam == null) {
return match; // do not replace, keep as is
}
return providedParam.toString();
});
}