size property

SizeUnit get size

Converts an int value to a SizeUnit.fixed instance.

This extension method provides a convenient way to create fixed size units directly from integer values, enhancing code readability and reducing boilerplate.

Implementation

SizeUnit get size => SizeUnit.fixed(toDouble());