FeatureSet class

An unordered collection of Feature objects.

Constructors

FeatureSet.forTesting({String sdkVersion, 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. [...]
factory
FeatureSet.fromEnableFlags(List<String> flags)
Computes the set of features implied by the given set of experimental enable flags.
factory

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

isEnabled(Feature feature) → bool
Queries whether the given feature is contained in this feature set.
restrictToVersion(Version version) FeatureSet
Computes a subset of this FeatureSet by removing any features that weren't available in the given Dart SDK version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited