newSourCode function
Implementation
String? newSourCode(ConstructorManager stateManager, String newFactory) {
final result = stateManager.findOrReplace(replacementText: newFactory);
final taskResult =
result.otherProps["findOrReplace_result"] as Map<String, dynamic>?;
final newSource = taskResult?["newSourceCode"] as String?;
return newSource;
}