icon property

IconData? icon
final

🆔 The icon data to display.

Available Material icons are described in Icons, but none found there are non-square. Only custom icons, such as CustomIcons from custom_icons.dart found in the IconToo Example app, would contain non-square IconData.

The icon may be null, in which case this Widget will render as an empty space of the specified 🧮 trueSize (or sizeX x sizeY) with Semantics in place.

Implementation

final IconData? icon;