CSSLengthValue constructor
CSSLengthValue(
- double? value,
- CSSLengthType type, [
- RenderStyle? renderStyle,
- String? propertyName,
- Axis? axisType,
Implementation
CSSLengthValue(this.value, this.type, [this.renderStyle, this.propertyName, this.axisType]) {
if (propertyName != null) {
if (type == CSSLengthType.EM) {
renderStyle!.addFontRelativeProperty(propertyName!);
} else if (type == CSSLengthType.REM) {
renderStyle!.addRootFontRelativeProperty(propertyName!);
}
}
}