fromString static method

EXTENSION? fromString(
  1. String type
)

Implementation

static EXTENSION? fromString(String type) =>
    _values.firstOrNullWhere((element) => element.value == type);