counter property
int
counter
To access the private counter, add this to the test file:
extension TestExtension on IMap {
int get counter => InternalsForTestingPurposesIMap(this).counter;
}
Implementation
int get counter => imap._counter;