PaletteRGB class abstract

A Palette Color from alpha, red, green and blue.

The color value consists of four bytes (32 bits):

  • bits 24-31 are the alpha value (opacity).
  • bits 16-23 are the red value.
  • bits 8–15 are the green value.
  • bits 0–7 are the blue value.
Implemented types
Implementers

Constructors

PaletteRGB({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