PercentageOption class

Represents a percentage option.

Annotations
  • @JsonSerializable()

Constructors

PercentageOption(SettingValue settingValue, double percentage, String? variationId)
PercentageOption.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
percentage double
A number between 0 and 100 that represents a randomly allocated fraction of the users.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settingValue SettingValue
The value associated with the percentage option. Can be a value of the following types: {@link Boolean}, {@link String}, {@link Integer} or {@link Double}.
final
variationId String?
Variation ID.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited