AnimatedWidget constructor

const AnimatedWidget(
  1. {Key key,
  2. @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);