icon property

Widget? icon
final

Optional leading icon widget (or standalone icon when label is null).

Standard Icon widgets inherit iconSize and the resolved foreground color via IconTheme. Mutually exclusive with child.

Implementation

final Widget? icon;