AnimatedWidget constructor

const AnimatedWidget({Key key, @required Listenable listenable })

Creates a widget that rebuilds when the given listenable changes.

The listenable argument is required.

Implementation

const AnimatedWidget({
  Key key,
  @required this.listenable
}) : assert(listenable != null),
     super(key: key);