isEnabled static method
Determines whether the specified platform is enabled in config.
Returns false when the platform is not supported.
Implementation
static bool isEnabled(
InitConfig config,
String platform,
) {
switch (platform) {
case 'android':
return config.android;
case 'ios':
return config.ios;
case 'web':
return config.web;
default:
return false;
}
}