previousOrNull

Returns the previous value of this enum (ordered the same way as declared in code, i.e. by ordinal).

If the current value is the first, returns null.

See also