of static method

DataType? of(
  1. String type
)

Implementation

static DataType? of(String type) {
  if (type == Feature.value) {
    return Feature;
  } else if (type == Tile.value) {
    return Tile;
  } else {
    return null;
  }
}