copy method

Implementation

DartBlockFunction copy() {
  return DartBlockFunction(
    name,
    returnType,
    List.from(parameters.map((e) => e.copy())),
    List.from(statements.map((e) => e.copy())),
  );
}