Failure.fromRpcErrorCode constructor
Failure.fromRpcErrorCode(
- int code
Implementation
factory Failure.fromRpcErrorCode(int code) => Failure.values.firstWhere(
(error) => error.code == code,
orElse: () => Failure.other,
);