icon property

IconData? icon
final

The icon to display on the button.

If null, only the label will be shown (if provided).

Implementation

final IconData? icon;