withIterationContext static method
Implementation
static List<dynamic> withIterationContext(
List<dynamic> Function(IterationContext) iteratedFunction,
Map<String, dynamic> passed) {
final topIterationContext = passed[_iterationKey];
final thisIterationContext = IterationContext();
passed[_iterationKey] = thisIterationContext;
final result = iteratedFunction(thisIterationContext);
passed[_iterationKey] = topIterationContext;
return result;
}