parseStrokeJoin function

StrokeJoin parseStrokeJoin(
  1. List<XmlAttribute> el
)

Parses AVD strokeLineJoin to a StrokeJoin.

Implementation

StrokeJoin parseStrokeJoin(List<XmlAttribute> el) {
  final String? rawStrokeJoin =
      getAttribute(el, 'strokeLineJoin', def: 'miter', namespace: androidNS);
  switch (rawStrokeJoin) {
    case 'miter':
      return StrokeJoin.miter;
    case 'bevel':
      return StrokeJoin.bevel;
    case 'round':
      return StrokeJoin.round;
    default:
      return StrokeJoin.miter;
  }
}