


# DeleteAccountFailureFirebase.fromCode constructor




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



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





## Implementation

```dart
DeleteAccountFailureFirebase.fromCode(String code) : super.fromCode(code) {
  switch (code) {
    case 'requires-recent-login':
      msg = "User's last sign-in time does not meet the security threshold.";
      break;
    default:
      this.code = 'unknown';
      msg = 'An unknown error occurred.';
  }
}
```







