fromCode static method

NativeLastTurnEnd? fromCode(
  1. int code
)

The end native reported as code, or null for a code this client does not know.

Implementation

static NativeLastTurnEnd? fromCode(int code) =>
    code >= 0 && code < values.length ? values[code] : null;