isEnabled static method

bool isEnabled(
  1. InitConfig config,
  2. String platform
)

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;
  }
}