getSubstitutedText function
Implementation
String getSubstitutedText(
String text,
Map<String, dynamic>? valueByNameMap
)
{
if ( valueByNameMap != null )
{
for ( var entry in valueByNameMap.entries )
{
text = text.replaceAll( substitutionPrefix + entry.key + substitutionSuffix, entry.value.toString() );
}
}
return text;
}