Unit.expression constructor

const Unit.expression(
  1. String expression
)

Constructs a Unit from a custom css expression.

This allows to use css functions like calc(), min(), etc.

Implementation

const factory Unit.expression(String expression) = _ExpUnit;