flatMapStringIndexed method
.expandIndexed equivalent
'hello', 'world'.flatMapStringIndexed((index, element) => index.toString(), element)
returns '0hello1world'.
Implementation
String flatMapStringIndexed(
Iterable<String> Function(int index, String element) expand) =>
expandIndexed(expand).join('');