getCurrentPlatformFirebaseOptions function
Implementation
FirebaseOptions getCurrentPlatformFirebaseOptions(
Map<String, FirebaseOptions> options) {
if (kIsWeb) {
return options['web']!;
} else if (Platform.isAndroid) {
return options['android']!;
} else if (Platform.isIOS) {
return options['ios']!;
} else {
throw UnsupportedError(
'Your platform is not supported for Firebase Initialization.');
}
}