callConstructor function

dynamic callConstructor(
  1. Function constr,
  2. List arguments
)

Implementation

dynamic callConstructor(Function constr, List arguments) {
  return Function.apply(constr, arguments);
}