resolveGap static method

CSSLengthValue resolveGap(
  1. String gap, {
  2. RenderStyle? renderStyle,
  3. String? propertyName,
})

Implementation

static CSSLengthValue resolveGap(String gap, {RenderStyle? renderStyle, String? propertyName}) {
  if (gap == 'normal') {
    return CSSLengthValue.normal;
  }
  // Pass propertyName so CSS-wide keywords (e.g. `inherit`) and percentages
  // resolve with the correct context (row-gap vs column-gap).
  return CSSLength.parseLength(gap, renderStyle, propertyName);
}