Skip to content

Commit

Permalink
Add clarification in Animation's listener API docs (flutter#33363)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvolkert authored May 27, 2019
1 parent 75d75bf commit ddef473
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/flutter/lib/src/animation/animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit ddef473

Please sign in to comment.