size property

SizeUnit get size

Converts a double value to a SizeUnit.fixed instance.

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

Implementation

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