asSize property

Size asSize

🧮 Returns this IconToo's size as a Size with width equal to sizeX, or 0.0 if null, and height equal to sizeY, or 0.0 if null.

Size objects have a few handy getters and methods.

Implementation

Size get asSize => Size(sizeX ?? 0.0, sizeY ?? 0.0);