hasClients property

bool get hasClients

Whether any ScrollPosition objects have attached themselves to the ScrollController using the attach method.

If this is false, then members that interact with the ScrollPosition, such as position, offset, animateTo, and jumpTo, must not be called.

Implementation

bool get hasClients => _positions.isNotEmpty;