AddAll constructor
AddAll()
Implementation
AddAll()
: super(
methodName: "addAll",
targetType: .list,
arity: 1,
function: (target, _, arguments) {
if (arguments[0] is! List) {
throw RuntimeError("addAll argument must be a list.");
}
target.addAll(arguments[0].cast<Object>());
return target.length;
},
);