AFGeneratedFile.fromPath constructor

AFGeneratedFile.fromPath({
  1. required List<String> projectPath,
})

Implementation

factory AFGeneratedFile.fromPath({
  required List<String> projectPath,
}) {
  final buffer = AFCodeBuffer.fromPath(projectPath);
  return AFGeneratedFile(
    projectPath: projectPath,
    buffer: buffer,
    action: AFGeneratedFileAction.modify
  );
}