ComicTones class

Four semantic inks, each legible on the current panel ground.

Annotations

Constructors

ComicTones({required Color info, required Color success, required Color warning, required Color danger})
Creates semantic inks.
const

Properties

danger → Color
Danger ink.
final
hashCode → int
The hash code for this object.
no setteroverride
info → Color
Information ink.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → Color
Success ink.
final
warning → Color
Warning ink.
final

Methods

copyWith({Color? info, Color? success, Color? warning, Color? danger}) → ComicTones
Changes only the supplied inks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(ComicTone tone) → Color
The ink corresponding to a meaning.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

lerp(ComicTones a, ComicTones b, double t) → ComicTones
Blends all four inks.

Constants

dark → const ComicTones
Inks for dark panels.
light → const ComicTones
Inks for light newsprint.