AnimatedIcon constructor

const AnimatedIcon({Key key, @required AnimatedIconData icon, @required Animation<double> progress, Color color, double size, String semanticLabel, TextDirection textDirection })

Creates an AnimatedIcon.

The progress and icon arguments must not be null. The size and color default to the value given by the current IconTheme.

Implementation

const AnimatedIcon({
  Key key,
  @required this.icon,
  @required this.progress,
  this.color,
  this.size,
  this.semanticLabel,
  this.textDirection,
}) : assert(progress != null),
     assert(icon != null),
     super(key: key);