getType method

  1. @override
EmblemType getType(
  1. String type
)
override

Returns the corresponding emblem type from all deities with type type

Implementation

@override
EmblemType getType(String type) {
  return _emblemTypes.firstWhere(
    (emblemType) => emblemType.getEmblemType() == type,
    orElse: () => throw EmblemTypeNotFoundException(
        "EmblemType with type $type was not found"),
  );
}