icon property

Widget? icon
final

Icon widget to display before the label (or alone, if label is null).

Standard Icon widgets automatically pick up the correct color and size from the parent IconTheme. Typically a CupertinoIcons icon.

Implementation

final Widget? icon;