diff --git a/packages/flutter/lib/src/widgets/animated_list.dart b/packages/flutter/lib/src/widgets/animated_list.dart index 1a1a62546ea..c247fa46ab2 100644 --- a/packages/flutter/lib/src/widgets/animated_list.dart +++ b/packages/flutter/lib/src/widgets/animated_list.dart @@ -162,7 +162,7 @@ class _ActiveItem implements Comparable<_ActiveItem> { /// } /// } /// -/// typedef RemovedItemBuilder = Widget Function(int item, BuildContext context, Animation animation); +/// typedef RemovedItemBuilder = Widget Function(T item, BuildContext context, Animation animation); /// /// /// Keeps a Dart [List] in sync with an [AnimatedList]. /// /// @@ -181,7 +181,7 @@ class _ActiveItem implements Comparable<_ActiveItem> { /// }) : _items = List.from(initialItems ?? []); /// /// final GlobalKey listKey; -/// final RemovedItemBuilder removedItemBuilder; +/// final RemovedItemBuilder removedItemBuilder; /// final List _items; /// /// AnimatedListState? get _animatedList => listKey.currentState; @@ -197,7 +197,7 @@ class _ActiveItem implements Comparable<_ActiveItem> { /// _animatedList!.removeItem( /// index, /// (BuildContext context, Animation animation) { -/// return removedItemBuilder(index, context, animation); +/// return removedItemBuilder(removedItem, context, animation); /// }, /// ); /// }