parseShapeColor static method

CommentShapeColor? parseShapeColor(
  1. String str
)

Implementation

static CommentShapeColor? parseShapeColor(String str) {
  switch (str) {
    case 'G':
      return CommentShapeColor.green;
    case 'R':
      return CommentShapeColor.red;
    case 'Y':
      return CommentShapeColor.yellow;
    case 'B':
      return CommentShapeColor.blue;
    default:
      return null;
  }
}