decode static method

ErrorCode? decode(
  1. Unpacker u
)

Implementation

static ErrorCode? decode(Unpacker u) {
  final n = u.unpackInt();
  return n != null ? fromInt(n) : null;
}