


# FetchSignInMethodsForEmailFailureFirebase.fromCode constructor




    *[<Null safety>](https://dart.dev/null-safety)*



FetchSignInMethodsForEmailFailureFirebase.fromCode([String](https://api.flutter.dev/flutter/dart-core/String-class.html) code)





## Implementation

```dart
FetchSignInMethodsForEmailFailureFirebase.fromCode(String code)
    : super.fromCode(code) {
  switch (code) {
    case 'invalid-email':
      msg = 'The email address is badly formatted.';
      break;
    default:
      this.code = 'unknown';
      msg = 'An unknown error occurred.';
  }
}
```







