counter property

int counter

To access the private counter, add this to the test file:

extension TestExtension on IList {
  int get counter => InternalsForTestingPurposesIList(this).counter;
}

Implementation

int get counter => ilist._counter;