isConfigValid method

  1. @override
String? isConfigValid(
  1. Map<String, dynamic> config
)
override

Check whether the given configuration is valid. If the configuration is valid, returns null. Otherwise, returns a description of the reason the configuration is invalid. This should always return null if !inConfig(config).

Implementation

@override
String? isConfigValid(final Map<String, dynamic> config) {
  if (!inConfig(config)) {
    return null;
  }

  if (minSdk() < 26 && !config.containsKey('android')) {
    throw const InvalidConfigException(constants.errorMissingRegularAndroid);
  }

  return super.isConfigValid(config);
}