associatedUnit property

String? associatedUnit
final

The unit that's associated with this channel.

Some channels are typically written without units, while others have a specific unit that is conventionally applied to their values. Although any compatible unit or unitless value will work for input¹, this unit is used when the value is serialized or returned from a Sass function.

1: Unless LinearChannel.requiresPercent is set, in which case unitless values are not allowed.

Implementation

final String? associatedUnit;