fromInt static method

TIMError? fromInt(
  1. int code
)

Implementation

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