getType method
Returns the corresponding landscape type from all landscapes with type type
Implementation
@override
LandscapeType getType(String type) {
return _landscapeTypes.firstWhere(
(landscapeType) => landscapeType.getLandscapeType() == type,
orElse: () => throw LandscapeTypeNotFoundException(
"LandscapeType with type $type was not found"),
);
}