isValidGapValue static method

bool isValidGapValue(
  1. String val
)

Implementation

static bool isValidGapValue(String val) {
  if (val == 'normal') return true;
  if (CSSFunction.isFunction(val)) return true;
  // Gap values are <length-percentage> (non-negative) or `normal`.
  return CSSLength.isNonNegativeLength(val) || CSSPercentage.isNonNegativePercentage(val);
}