PercentCondition class
---------- Primitive Conditions (Atoms) A condition that compares the instance pseudo-random percentile to a given limit.
NOTE: Developers provide an ID via the Admin SDK. This ID is hashed to a random percentile. The function is consistent and repeatable and will give the same result for evaluating an ID for the same condition across different platforms and across time. The function is consistent with the function used for evaluating IDs for client templates.
Constructors
- PercentCondition({int? microPercent, MicroPercentRange? microPercentRange, String? percentOperator, String? seed})
- PercentCondition.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- microPercent ↔ int?
-
The limit of percentiles to target in micro-percents.
getter/setter pair
- microPercentRange ↔ MicroPercentRange?
-
The range of percentiles to target in micro-percents.
getter/setter pair
- percentOperator ↔ String?
-
The choice of percent operator to determine how to compare targets to
percent(s).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed ↔ String?
-
The seed used when evaluating the hash function to map an instance to a
value in the hash space.
getter/setter pair
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