adds isAttached getter to DraggableScrollableController#100269
adds isAttached getter to DraggableScrollableController#100269fluttergithubbot merged 3 commits intoflutter:masterfrom maheshj01:draggablesheet
isAttached getter to DraggableScrollableController#100269Conversation
isAttached getter to DraggableScrollControllerisAttached getter to DraggableScrollableController
Piinks
left a comment
There was a problem hiding this comment.
Hey @maheshmnj! Can this instead use the hasClients property that already exists on ScrollController?
|
For more context, just because _attachedController is not null, does not mean there is an attached position that is safe to access. :) |
@Piinks, Oh Yes, We should use expect(controller.isAttached, false); /// would throw Null check operator used on Null valueInstead of making |
There was a problem hiding this comment.
Can you update the _assertAttached function to use this getter now?
|
From triage: This probably needs to be rebased to make the failing check happy. |
|
Thanks for checking @goderbauer, I have rebased it. |
|
This pull request is not suitable for automatic merging in its current state.
|
|
Restarted the Google Testing check. Hopefully it will pass now. |

This PR adds
isAttachedgetter to DraggableScrollableController similar toScrollController.hasClientsFixes #99994
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.