internalProcessAttach method

void internalProcessAttach()

Implementation

void internalProcessAttach() {
  if (!isAttached) {
    isAttached = true;
    if (!attachCompleter.isCompleted) {
      attachCompleter.complete();
    }
    if (!attachStreamController.isClosed) {
      attachStreamController.add(AttachEvent(device: this));
    }
  }
}