Skip to content

Commit 48fed37

Browse files
fix(firebase_core): Fix FirebaseException error code bug by making default value: "unknown". (#6897)
Co-authored-by: Russell Wheatley <russellwheatley85@gmail.com>
1 parent cf59bd3 commit 48fed37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/firebase_core/firebase_core_platform_interface/lib/src/firebase_exception.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ class FirebaseException implements Exception {
3030
FirebaseException({
3131
required this.plugin,
3232
this.message,
33-
this.code = 'unknown',
33+
String? code,
3434
this.stackTrace,
35-
});
35+
// ignore: unnecessary_this
36+
}) : this.code = code ?? 'unknown';
3637

3738
/// The plugin the exception is for.
3839
///

0 commit comments

Comments
 (0)