interpolateList static method

void interpolateList(
  1. List array,
  2. VoyagerContext context
)

interpolates array with values from context

Implementation

static void interpolateList(List array, VoyagerContext context) {
  final n = array.length;
  for (var i = 0; i < n; i++) {
    dynamic o = array[i];

    if (isListOrMap(o)) {
      interpolateDynamic(o, context);
    } else if (o is String) {
      o = interpolate(o, context.params);
      array[i] = o;
    }
  }
}