toGeometryType method
Implementation
GeometryType toGeometryType() {
switch (toLowerCase()) {
case 'oval': return GeometryType.oval;
case 'rectangle': return GeometryType.rectangle;
case 'circle': return GeometryType.circle;
case 'square': return GeometryType.square;
default: throw Exception('Invlalid argument $this, expected oval, rectangle, circle or square');
}
}