CSSLengthValue constructor

CSSLengthValue(
  1. double? value,
  2. CSSLengthType type, [
  3. RenderStyle? renderStyle,
  4. String? propertyName,
  5. 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!);
    }
  }
}