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

This commit is contained in:
Todd Volkert 2019-05-27 10:17:09 -07:00 committed by GitHub
parent 75d75bfaec
commit ddef473e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
///
/// 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<T> extends Listenable implements ValueListenable<T> {
/// 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);