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

Method connect

src/test/flutter/device_manager.test.ts:370–375  ·  view source on GitHub ↗
(d: f.Device, markTypeAsValid: boolean)

Source from the content-addressed store, hash-verified

368 }
369
370 public async connect(d: f.Device, markTypeAsValid: boolean): Promise<void> {
371 if (markTypeAsValid && d.platformType)
372 await this.enablePlatform(d.platformType);
373
374 await this.notify(this.deviceAddedSubscriptions, d);
375 }
376
377 public async disconnect(d: f.Device): Promise<void> {
378 await this.notify(this.deviceRemovedSubscriptions, d);

Callers 2

startMethod · 0.45

Calls 1

enablePlatformMethod · 0.95

Tested by

no test coverage detected