FirebaseException constructor
FirebaseException({
- required String plugin,
- String? message,
- String? code,
- StackTrace? stackTrace,
A generic class which provides exceptions in a Firebase-friendly format to users.
try {
await Firebase.initializeApp();
} catch (e) {
print(e.toString());
}
Implementation
FirebaseException({
required this.plugin,
this.message,
String? code,
this.stackTrace,
// ignore: unnecessary_this
}) : this.code = code ?? 'unknown';