replaceWrappedWithList method
Replaces the placeholders in the String with the values from the provided values list.
The placeholders are indexes surrounded by openWrapChar and closeWrapChar.
Implementation
String replaceWrappedWithList({required Iterable<dynamic> values, required String openWrapChar, String? closeWrapChar}) {
if (isBlank) return blankIfNull;
return replaceWrappedWithMap(values: Map.fromEntries(values.select((x, i) => MapEntry(i.toString(), x))), openWrapChar: openWrapChar, closeWrapChar: closeWrapChar);
}