parseCSSBorderStyle function
Implementation
CSSBorderStyle? parseCSSBorderStyle(String? borderStyle) {
if (borderStyle == null) return null;
borderStyle = borderStyle.trim().toLowerCase();
switch (borderStyle) {
case 'dotted':
return CSSBorderStyle.dotted;
case 'dashed':
return CSSBorderStyle.dashed;
case 'solid':
return CSSBorderStyle.solid;
case 'double':
return CSSBorderStyle.double;
case 'groove':
return CSSBorderStyle.groove;
case 'ridge':
return CSSBorderStyle.ridge;
case 'inset':
return CSSBorderStyle.inset;
case 'outset':
return CSSBorderStyle.outset;
case 'none':
return CSSBorderStyle.none;
case 'hidden':
return CSSBorderStyle.hidden;
default:
return null;
}
}