icon property

IconData? icon
final

The widget that will be shown inside the button.

If this parameter is not null, label must be null.

Typically an Icon, or a Text.

Implementation

final IconData? icon;