fromString static method
Get a NeighborType from a given string value
.
Implementation
static NeighborType fromString(String value) {
return values.firstWhere(
(unitType) => unitType.value == value,
orElse: () => unknown,
);
}
Get a NeighborType from a given string value
.
static NeighborType fromString(String value) {
return values.firstWhere(
(unitType) => unitType.value == value,
orElse: () => unknown,
);
}