argsWithValues function

SplayTreeMap<String, dynamic> argsWithValues(
  1. Map<String, dynamic> variables,
  2. Iterable<ArgumentNode> arguments
)

Implementation

SplayTreeMap<String, dynamic> argsWithValues(
  Map<String, dynamic> variables,
  Iterable<ArgumentNode> arguments,
) =>
    arguments.fold(
      SplayTreeMap(),
      (map, argument) => map
        ..[argument.name.value] = _resolveValueNode(
          argument.value,
          variables,
        ),
    );