resolveViewportCSSLength method

CSSLength resolveViewportCSSLength(
  1. num value,
  2. CSSUnit unit
)

Implementation

CSSLength resolveViewportCSSLength(num value, CSSUnit unit) {
  if (viewport == null) {
    return CSSLength(value, unit);
  }
  var resolvedViewportValue =
      _computeViewportCSSLength(value, unit, viewport);
  return resolvedViewportValue ?? CSSLength(value, unit);
}