StagedRolloutEvaluator class

Evaluates deterministic staged percentage rollouts for OTA updates.

Uses cryptographic hashing of device ID and update ID to consistently place a device in a partition 0..99 without central coordination.

Example:

final isEligible = StagedRolloutEvaluator.isEligible(
  deviceId: 'device_xyz',
  updateId: 'patch_12',
  rolloutPercentage: 25,
);

Constructors

StagedRolloutEvaluator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

getDeviceBucket(String deviceId, String updateId) int
Computes a deterministic integer bucket 0..99 for a given deviceId and updateId.
isEligible({required String deviceId, required String updateId, required int rolloutPercentage}) bool
Determines whether a device falls within the staged percentage rollout window 1..100.