parseShapeColor static method
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;
}
}