parentController property
used to chaining parent scroll controller
Implementation
@override
set parentController(ScrollController parentController) {
if (_parentController == parentController) return;
final isNotEmpty = positions.isNotEmpty;
if (isNotEmpty && _parentController != null) {
for (final p in _parentController!.positions)
if (positions.contains(p)) _parentController!.detach(p);
}
_parentController = parentController;
if (isNotEmpty && _parentController != null)
for (final p in positions) _parentController!.attach(p);
}