fromInt static method

LiveError? fromInt(
  1. int code
)

Implementation

static LiveError? fromInt(int code) {
  for (var enumValue in LiveError.values) {
    if (enumValue.code == code) return enumValue;
  }
  return null;
}