firebasePlatform static method
Resolves the Firebase configuration for the specified platform.
Uses the platform configuration defined by the provided flavor.
Throws an UnsupportedError when the platform is not supported.
Implementation
static FirebasePlatform firebasePlatform(
FlavorDetails flavor,
String platform,
) {
switch (platform) {
case 'android':
return flavor.firebase.android;
case 'ios':
return flavor.firebase.ios;
case 'web':
return flavor.firebase.web;
default:
throw UnsupportedError(
'Unsupported platform: $platform',
);
}
}