EQLazyStackController constructor
EQLazyStackController({})
Implementation
EQLazyStackController({
int initialIndex = 0,
this.preloadIndexes = const [],
this.disposeUnused = false,
this.maxCachedPages = 3,
this.removableIndexes = const [],
this.isListenMemoryPressure = false,
}) : _currentIndex = initialIndex {
_markAsUsed(initialIndex);
for (final index in preloadIndexes) {
_markAsUsed(index);
}
if (isListenMemoryPressure) {
WidgetsBinding.instance.addObserver(this);
}
}