sizeX property

double? sizeX

🧮 Horizontal size, or width, in logical pixels to provide as space for this IconToo. Gets _sizeX if assigned. May be null.

Will consider _trueSize prior to _sizeX, but is deprecated.

Unlike an Icon.size this double only represents the resolution of in one axis, X.

Rendered IconToo defaults to the current IconTheme.of size, if any, itself defaulting to 24.0.

Implementation

double? get sizeX => _trueSize?.width ?? _sizeX;