ImplicitlyAnimatedWidget constructor

const ImplicitlyAnimatedWidget({Key key, Curve curve: Curves.linear, @required Duration duration })

Initializes fields for subclasses.

The curve and duration arguments must not be null.

Implementation

const ImplicitlyAnimatedWidget({
  Key key,
  this.curve = Curves.linear,
  @required this.duration
}) : assert(curve != null),
     assert(duration != null),
     super(key: key);