DVFlagRollout class

A percentage of a population, chosen by hashing rather than by chance.

Constructors

DVFlagRollout.percentage(num percent, {required DVFlagSubject by})
percent of subjects identified by by, from 0 to 100.
factory

Properties

basisPoints → int
The threshold, out of 10,000.
final
by → DVFlagSubject
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

bucket(String flagKey, String subjectId) → int
A subject's bucket for a flag: the first eight bytes of SHA-256("$flagKey:$subjectId"), big-endian, modulo 10,000.
fromJson(Object? json) → DVFlagRollout?