AnimatedWidget constructor
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);