PaletteRGB class abstract
A Palette Color from alpha, red, green and blue.
The color value consists of 4 bytes (32 bits):
- bits 0–7 represent the blue value.
- bits 8–15 represent the green value.
- bits 16–23 represent the red value.
- bits 24–31 represent the alpha value — opacity.
- Implemented types
- Implementers
- Amber
- AmberAccent
- Black
- Blue
- BlueAccent
- BlueGrey
- Brown
- Cyan
- CyanAccent
- DeepOrange
- DeepOrangeAccent
- DeepPurple
- DeepPurpleAccent
- Green
- GreenAccent
- Grey
- Indigo
- IndigoAccent
- LightBlue
- LightBlueAccent
- LightGreen
- LightGreenAccent
- Lime
- LimeAccent
- Orange
- OrangeAccent
- Pink
- PinkAccent
- Purple
- PurpleAccent
- Red
- RedAccent
- Teal
- TealAccent
- Transparent
- White
- Yellow
- YellowAccent
Constructors
- PaletteRGB.new({required int alpha, required int rgb})
-
Custom
alpha
andrgb
values.const - PaletteRGB.black({int opacity = 0xFF})
-
Convenience black #000000.
const
- PaletteRGB.opaque(int rgb)
-
Fully opaque color.
const
- PaletteRGB.white({int opacity = 0xFF})
-
Convenience white #FFFFFF.
const
Properties
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