feat(selection): update clear method and improve selection action bar visibility

This commit is contained in:
wanghongenpin
2026-05-19 19:48:09 +08:00
parent bb88aac6b8
commit cc6c454eff
4 changed files with 39 additions and 39 deletions

View File

@@ -24,9 +24,11 @@ void main() {
expect(controller.selectedIds, {'b', 'c', 'd'});
});
test('selectAll and prune keep only visible ids', () {
test('prune keeps only visible ids', () {
final controller = MultiSelectController();
controller.selectOnly('b');
controller.selectRange(['a', 'b', 'c', 'd'], 'c');
controller.prune(['b', 'c', 'd']);
expect(controller.isSelectionMode, isTrue);