Skip to content

Commit e54e33c

Browse files
Change the code sample (flutter#79743)
1 parent 531d99f commit e54e33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/lib/src/widgets/dismissible.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ enum DismissDirection {
9292
/// key: ValueKey<int>(items[index]),
9393
/// onDismissed: (DismissDirection direction) {
9494
/// setState(() {
95-
/// items.remove(index);
95+
/// items.removeAt(index);
9696
/// });
9797
/// },
9898
/// );

0 commit comments

Comments
 (0)