chatErrorCodeFromCode function Null safety

ChatErrorCode? chatErrorCodeFromCode(
  1. int code
)

Implementation

ChatErrorCode? chatErrorCodeFromCode(int code) => _errorCodeWithDescription.keys
    .firstWhereOrNull((key) => _errorCodeWithDescription[key]!.key == code);