firebasePlatform static method
Resolves the Firebase configuration for the specified platform.
Returns null when Firebase is not configured for the platform.
Throws an UnsupportedError when the platform is not supported.
Implementation
static FirebasePlatform? firebasePlatform(
FirebaseDetails firebase,
String platform,
) {
switch (platform) {
case 'android':
return firebase.android;
case 'ios':
return firebase.ios;
case 'web':
return firebase.web;
default:
throw UnsupportedError(
'Unsupported platform: $platform',
);
}
}