from static method

Implementation

static PresentationOrientation? from(String? value) =>
    _values.firstOrNullWhere((element) => element.value == value);