fromName static method

Depth? fromName(
  1. String value
)

Implementation

static Depth? fromName(String value) =>
    Depth.values.where((e) => e.name == value).firstOrNull;