icon property
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.
Implementation
final Widget icon;