inPackage method

ComparedItem inPackage(
  1. String package, {
  2. required bool qualify,
})

The same row, addressed inside package.

qualify puts the package's path in front of the id, which is what a comparison spanning several packages does: without it two packages each declaring demo/card.dart#card are one row that overwrites itself. A comparison of a single package leaves the id exactly as it was and still records the package.

Implementation

ComparedItem inPackage(String package, {required bool qualify}) =>
    ComparedItem(
      id: qualify ? comparedIdIn(package, id) : id,
      state: state,
      label: label,
      pixels: pixels,
      tree: tree,
      texts: texts,
      events: events,
      note: note,
      retargeted: retargeted,
      shots: shots,
      package: package,
    );