newSourCode function

String? newSourCode(
  1. ConstructorManager stateManager,
  2. String newFactory
)

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;
}