icon property

Widget icon
final

The icon to display inside the button.

The Icon.size and Icon.color of the icon is configured automatically based on the iconSize and color properties of this widget using an IconTheme and therefore should not be explicitly given in the icon widget.

See Icon, ImageIcon.

Implementation

final Widget icon;