size property Null safety

double? size
final

The size of the icon in logical pixels.

Icons occupy a square with width and height equal to size.

Defaults to the current IconTheme size, if any. If there is no IconTheme, or it does not specify an explicit size, then it defaults to 24.0.

If this Icon is being placed inside an IconButton, then use IconButton.iconSize instead, so that the IconButton can make the splash area the appropriate size as well. The IconButton uses an IconTheme to pass down the size to the Icon.

Implementation

final double? size;