diff --git a/lib/src/animate.dart b/lib/src/animate.dart index cc39f35..6b6b6dc 100644 --- a/lib/src/animate.dart +++ b/lib/src/animate.dart @@ -397,9 +397,11 @@ class _AnimateState extends State with SingleTickerProviderStateMixin { } } +/// Adds [Animate] related extensions to [Widget]. extension AnimateWidgetExtensions on Widget { - /// Wraps the target Widget in an Animate instance. Ex. `myWidget.animate()` is equivalent - /// to `Animate(child: myWidget)`. + /// Wraps the target [Widget] in an [Animate] instance, and returns + /// the instance for chaining calls. + /// Ex. `myWidget.animate()` is equivalent to `Animate(child: myWidget)`. Animate animate({ Key? key, List? effects, diff --git a/lib/src/animate_list.dart b/lib/src/animate_list.dart index 3e581d3..1473e1b 100644 --- a/lib/src/animate_list.dart +++ b/lib/src/animate_list.dart @@ -106,9 +106,11 @@ class AnimateList extends ListBase } } -/// Wraps the target `List` in a [AnimateList] instance. -/// Ex. `[foo, bar].animate()` is equivalent to `AnimateList(children: [foo, bar])`. +/// Adds [AnimateList] related extensions to `List`. extension AnimateListExtensions on List { + /// Wraps the target `List` in an [AnimateList] instance, and returns + /// the instance for chaining calls. + /// Ex. `[foo, bar].animate()` is equivalent to `AnimateList(children: [foo, bar])`. AnimateList animate({ List? effects, AnimateCallback? onInit,