replaceMapValue static method
Implementation
static String replaceMapValue(String string, Map<String, String> mapPattern) => string.replaceAllMapped(
RegExp(mapPattern.keys.join('|'), caseSensitive: false),
(match) => mapPattern[match.group(0)]!,
);