visitDictExpr method

  1. @override
Object visitDictExpr(
  1. Dict expr
)
override

Implementation

@override
Object visitDictExpr(Expr.Dict expr) {
  Map<Object, Object?> entries = {};
  expr.entries.forEach((key, value) {
    entries[evaluate(key)!] = evaluate(value);
  });
  return entries;
}