Unverified Commit ddef473e authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Add clarification in Animation's listener API docs (#33363)

parent 75d75bfa
...@@ -63,6 +63,9 @@ abstract class Animation<T> extends Listenable implements ValueListenable<T> { ...@@ -63,6 +63,9 @@ abstract class Animation<T> extends Listenable implements ValueListenable<T> {
/// Stop calling the listener every time the value of the animation changes. /// 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]. /// Listeners can be added with [addListener].
@override @override
void removeListener(VoidCallback listener); void removeListener(VoidCallback listener);
...@@ -74,6 +77,9 @@ abstract class Animation<T> extends Listenable implements ValueListenable<T> { ...@@ -74,6 +77,9 @@ abstract class Animation<T> extends Listenable implements ValueListenable<T> {
/// Stops calling the listener every time the status of the animation changes. /// 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]. /// Listeners can be added with [addStatusListener].
void removeStatusListener(AnimationStatusListener listener); void removeStatusListener(AnimationStatusListener listener);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment