toCloneFunction method
Implementation
String toCloneFunction(String className) {
final declarations = where((e) => e.name != null).map((e) => e.toCloneDeclaration()).join(',\n').trim();
final cloneDeclarations = ModelTemplates.indented(declarations, indent: 2);
return '$className clone() => $className(\n$cloneDeclarations\n );';
}