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

Function isDartSdkFromFlutter

src/shared/utils.ts:94–97  ·  view source on GitHub ↗
(dartSdkPath: string)

Source from the content-addressed store, hash-verified

92}
93
94export function isDartSdkFromFlutter(dartSdkPath: string) {
95 const possibleFlutterSdkPath = path.join(path.dirname(path.dirname(path.dirname(dartSdkPath))), "bin");
96 return fs.existsSync(path.join(possibleFlutterSdkPath, executableNames.flutter));
97}
98
99export function versionIsAtLeast(inputVersion: string, requiredVersion: string): boolean {
100 return semver.gte(inputVersion, requiredVersion);

Callers 2

util.test.tsFile · 0.90
scanWorkspaceMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected