ToneDeltaPair class

Documents a constraint between two DynamicColors, in which their tones must have a certain distance from each other.

Prefer a DynamicColor with a background, this is for special cases when designers want tonal distance, literally contrast, between two colors that don't have a background / foreground relationship or a contrast guarantee.

Constructors

ToneDeltaPair(DynamicColor roleA, DynamicColor roleB, double delta, TonePolarity polarity, bool stayTogether)
Documents a constraint in tone distance between two DynamicColors.

Properties

delta double
final
hashCode int
The hash code for this object.
no setterinherited
polarity TonePolarity
final
roleA DynamicColor
final
roleB DynamicColor
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stayTogether bool
final

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