From ddef473e07a605de9141836ceeba1dd11e3fa84a Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Mon, 27 May 2019 10:17:09 -0700 Subject: [PATCH] Add clarification in Animation's listener API docs (#33363) --- packages/flutter/lib/src/animation/animation.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/flutter/lib/src/animation/animation.dart b/packages/flutter/lib/src/animation/animation.dart index 041d1a2f24..8522785351 100644 --- a/packages/flutter/lib/src/animation/animation.dart +++ b/packages/flutter/lib/src/animation/animation.dart @@ -63,6 +63,9 @@ abstract class Animation extends Listenable implements ValueListenable { /// Stop calling the listener every time the value of the animation changes. /// + /// If `listener` is not currently registered as a listener, this method does + /// nothing. + /// /// Listeners can be added with [addListener]. @override void removeListener(VoidCallback listener); @@ -74,6 +77,9 @@ abstract class Animation extends Listenable implements ValueListenable { /// Stops calling the listener every time the status of the animation changes. /// + /// If `listener` is not currently registered as a status listener, this + /// method does nothing. + /// /// Listeners can be added with [addStatusListener]. void removeStatusListener(AnimationStatusListener listener);