stringToLineType function
- String str
Converts a string to a LineType.
Implementation
LineType stringToLineType(String str) {
switch (str) {
case 'dashed':
return LineType.dashed;
case 'dotted':
return LineType.dotted;
case 'dashDot':
return LineType.dashDot;
default:
return LineType.solid;
}
}