controller property

ScrollController? controller
final

The ScrollController associated with the scrollable widget this scrollbar is controlling.

If not provided, it defaults to the PrimaryScrollController in the current BuildContext. This fallback is useful in many typical scenarios where a single, primary scrollable area exists within a given context.

Implementation

final ScrollController? controller;