icon property

Widget? icon
final

If provided, the icon is used for this button and the button will behave like an IconButton.

Implementation

final Widget? icon;