resolveGap static method

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

Implementation

static CSSLengthValue resolveGap(String gap, {RenderStyle? renderStyle}) {
  if (gap == 'normal') {
    return CSSLengthValue.normal;
  }
  return CSSLength.parseLength(gap, renderStyle) ?? CSSLengthValue.normal;
}