parseRawFillRule function

PathFillType? parseRawFillRule(
  1. String? rawFillRule
)

Parses a fill-rule attribute.

Implementation

PathFillType? parseRawFillRule(String? rawFillRule) {
  if (rawFillRule == 'inherit' || rawFillRule == null) {
    return null;
  }

  return rawFillRule != 'evenodd' ? PathFillType.nonZero : PathFillType.evenOdd;
}