build property
A getter that returns a BasicShape
object.
Implementation
BasicShape get build {
switch (object) {
case Cross:
{
return Cross();
}
case Square:
{
return Square();
}
default:
throw Exception("Not defined shape");
}
}