MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / writeFlutterTriggerFile

Function writeFlutterTriggerFile

src/shared/utils/projects.ts:10–14  ·  view source on GitHub ↗
(folderPath: string, triggerData: FlutterCreateTriggerData | undefined)

Source from the content-addressed store, hash-verified

8}
9
10export function writeFlutterTriggerFile(folderPath: string, triggerData: FlutterCreateTriggerData | undefined) {
11 const jsonString = triggerData ? JSON.stringify(triggerData) : "";
12
13 fs.writeFileSync(path.join(folderPath, FLUTTER_CREATE_PROJECT_TRIGGER_FILE), jsonString);
14}
15
16export function writeFlutterSdkSettingIntoProject(flutterSdkPath: string, projectFolder: string): void {
17 writeSettingIntoProject(projectFolder, { "dart.flutterSdkPath": flutterSdkPath });

Calls

no outgoing calls

Tested by

no test coverage detected