fromString static method

CelmDepth fromString(
  1. String value
)

Refuses an unknown name. A misspelt depth that quietly became coarse would pass the manifest's depth check and then resolve every absence as unexamined.

Implementation

static CelmDepth fromString(String value) =>
    _enumByName(CelmDepth.values, 'depth', value);