isAttached property Null safety
Returns Whether any DraggableScrollableController objects have attached themselves to the DraggableScrollableSheet.
If this is false, then members that interact with the ScrollPosition, such as sizeToPixels, size, animateTo, and jumpTo, must not be called.
Implementation
bool get isAttached => _attachedController != null && _attachedController!.hasClients;