flatMapStringIndexed method

String flatMapStringIndexed(
  1. Iterable<String> expand(
    1. int index,
    2. String element
    )
)

.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('');