fromName static method

LockScope? fromName(
  1. String name
)

Implementation

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