parseLineCap static method

StrokeCap? parseLineCap(
  1. String value
)

Implementation

static StrokeCap? parseLineCap(String value) {
  switch(value) {
    case BUTT:
      return StrokeCap.butt;
    case ROUND:
      return StrokeCap.round;
    case SQUARE:
      return StrokeCap.square;
  }
  return null;
}