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

Constructors

PaletteRGB.new({required int alpha, required int rgb})
Custom alpha and rgb 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

color Color
The rgb color.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
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