vars method
Implementation
ErrorType vars({List<dynamic> params = const []}) {
if (params.isEmpty) {
return ErrorType(value.trim());
}
String result = value.trim();
for (int i = 0; i < params.length; i++) {
result = result.replaceAll("{{$i}}", params[i].toString());
}
return ErrorType(result);
}