unit property
String?
get
unit
The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
Implementation
_i2.String? get unit => _i5.getProperty(
this,
'unit',
);
set
unit
(String? value)
Implementation
set unit(_i2.String? value) {
_i5.setProperty(
this,
'unit',
value ?? _i4.undefined,
);
}