scrollController property

ScrollController scrollController
final

Controller for the ListView's scroll behavior.

This controller is used to:

  • Monitor scroll offset for accurate coordinate calculations
  • Potentially auto-scroll during drag operations (future enhancement)
  • Synchronize list position with selection state

Important: This controller must be disposed of properly to prevent memory leaks. Always call dispose when the provider is no longer needed.

Implementation

final ScrollController scrollController = ScrollController();