FeatureSet.forTesting constructor Null safety

  1. @visibleForTesting
  1. {String sdkVersion,
  2. List<Feature> additionalFeatures}

Computes a set of features for use in a unit test. Computes the set of features enabled in sdkVersion, plus any specified additionalFeatures.

If sdkVersion is not supplied (or is null), then the current set of enabled features is used as the starting point.


factory FeatureSet.forTesting(
        {String sdkVersion, List<Feature> additionalFeatures}) =
    // ignore: invalid_use_of_visible_for_testing_member