PosColor class
Constructors
- PosColor(int r, int g, int b)
-
const
- PosColor.fromColor(Color c)
-
Aus einer Flutter-Farbe: das Design-System liefert
Color, die Kasse rechnet und druckt mit PosColor. Alpha wird verworfen – Belege kennen keine Transparenz.factory - PosColor.fromHex(String hex, {required PosColor fallback})
-
#RRGGBB; alles andere ergibtfallback– eine Farbangabe aus dem Panel darf keine unsichtbare Kasse erzeugen.fallbackist Pflicht: ein stillschweigendes Panel-Blau als Vorgabe wäre eine Entscheidung des Aufrufers, die er nie getroffen hat.factory
Properties
- b → int
-
final
- g → int
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hex → String
-
no setter
- luminance → double
-
Relative Helligkeit nach WCAG (0 = Schwarz, 1 = Weiß).
no setter
- r → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
no setter
Methods
-
mixedWith(
PosColor other, double fraction) → PosColor -
Mischt zu
otherhin;fraction0 = diese Farbe, 1 = die andere. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override