isAttached property

bool get isAttached

Whether the controller is attached to a scrollable widget

Implementation

bool get isAttached => _scrollController?.hasClients ?? false;