$fromIterable static method

$Value? $fromIterable(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Implementation

static $Value? $fromIterable(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  return $LinkedHashMap.wrap(
    LinkedHashMap.fromIterable(
      (args[0] as $Iterable).$value,
      key: args[1] == null
          ? null
          : (a) => (args[1] as EvalCallable)(runtime, null, [
              runtime.wrap(a),
            ])!.$value,
      value: args[2] == null
          ? null
          : (a) => (args[2] as EvalCallable)(runtime, null, [
              runtime.wrap(a),
            ])!.$value,
    ),
  );
}