code property
String
get
code
Error codes are strings using the following format: "service/String-code"
.
Some examples include "auth/invalid-uid"
and
"messaging/invalid-recipient"
.
While the message for a given error can change, the code will remain the same between backward-compatible versions of the Firebase SDK.
Implementation
String get code => '$service/${_code.replaceAll('_', '-').toLowerCase()}';