Icon constructor

const Icon(IconData icon, { Key key, double size, Color color, String semanticLabel, TextDirection textDirection })

Creates an icon.

The size and color default to the value given by the current IconTheme.

Implementation

const Icon(
  this.icon, {
  Key key,
  this.size,
  this.color,
  this.semanticLabel,
  this.textDirection,
}) : super(key: key);