resolveLength static method

CSSLengthValue? resolveLength(
  1. String text,
  2. RenderStyle? renderStyle,
  3. String propertyName
)

Implementation

static CSSLengthValue? resolveLength(String text, RenderStyle? renderStyle, String propertyName) {
  if (text.isEmpty) {
    // Empty string means delete value.
    return null;
  } else {
    return parseLength(text, renderStyle, propertyName);
  }
}