GuardrailLimits class final

Thresholds for one theme (standard or Accessible lock).

Annotations

Constructors

GuardrailLimits({required double labelRatio, required double displayRatio, required double previewRatio, required double caretRatio, double focusRingRatio = ratioLarge, double faceContrast = 1.5, double cvdDeltaE = 0.08, double equalsVsOperatorDeltaE = 0.05})
const

Properties

caretRatio → double
Caret on display backdrops.
final
cvdDeltaE → double
Operator / = face vs digit face min ΔEOK over normal + CVD.
final
displayRatio → double
Display (expression/result) and error text on display backdrops.
final
equalsVsOperatorDeltaE → double
= face vs operator face min ΔEOK over normal + CVD.
final
faceContrast → double
Operator / = face vs digit face contrast.
final
focusRingRatio → double
Focus ring on the background (WCAG 1.4.11).
final
hashCode → int
The hash code for this object.
no setterinherited
labelPolicy → ContrastPolicy
The label-solving policy matching these limits.
no setter
labelRatio → double
Key labels on their faces (digits, operators, =, functions).
final
previewRatio → double
Live preview / indicator text on display backdrops.
final
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

forSpec(ThemeSpec spec) → GuardrailLimits
Limits for spec (its accessible flag).

Constants

accessible → const GuardrailLimits
Accessible lock: every label and display text ≥ 7:1.
standard → const GuardrailLimits
Standard limits.