Feature<T> class
- Available extensions
Constructors
- Feature.new({required String key, required String title, FeatureType type = FeatureType.feature, String description = '', String remoteSourceKey = '', T? defaultValue})
-
const
Properties
- defaultValue → T?
-
final
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isBoolean → bool
-
Available on Feature<
Returns true if this Boolean FeatureT> , provided by the FeatureBooleanExt extensionno setter - isDouble → bool
-
Available on Feature<
Returns true if this Double FeatureT> , provided by the FeatureBooleanExt extensionno setter - isEnabled → bool
-
Available on BooleanFeature, provided by the BooleanFeatureExt extension
Returnstrue
if the feature is enabled, otherwisefalse
.no setter - isInteger → bool
-
Available on Feature<
Returns true if this Integer FeatureT> , provided by the FeatureBooleanExt extensionno setter - isJson → bool
-
Available on Feature<
Returns true if this Json FeatureT> , provided by the FeatureBooleanExt extensionno setter - isText → bool
-
Available on Feature<
Returns true if this Text FeatureT> , provided by the FeatureBooleanExt extensionno setter - key → String
-
final
- remoteSourceKey → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
final
- type → FeatureType
-
final
- value → T?
-
Available on Feature<
T> , provided by the FeatureBooleanExt extensionno setter
Methods
-
copyWith(
{String? key, FeatureType? type, String? title, String? description, String? remoteSourceKey, T? defaultValue}) → Feature< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override