Places a device in a tier from its facts: [facts] plus
performanceScore (the weighted mean of the levels that are known and
weighted, or 0 when none are), then the first matching rule, else the
config's fallback. Port of Android GameDeviceTier.
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
-
evaluate(
Map< String, Object?> facts, [DeviceTierConfig? config]) → String -
The tier of the first rule that matches
facts, else the config's fallback. -
scored(
Map< String, Object?> facts, [DeviceTierConfig? config]) → Map<String, Object?> -
factsplusperformanceScore: the weighted mean of the levels that are known (> 0) and weighted (> 0), or 0 when none are. -
tierOf(
Map< String, Object?> facts, [DeviceTierConfig? config]) → String - The tier for raw plugin facts: scores the levels, then evaluates.