PdfColor class Null safety

Represents an RGB color

Implementers

Constructors

PdfColor(double red, double green, double blue, [double alpha = 1.0])
Create a color with red, green, blue and alpha components values between 0 and 1
const
PdfColor.fromHex(String color)
Can parse colors in the form: [...]
factory
PdfColor.fromInt(int color)
Return a color with: 0xAARRGGBB
const
PdfColor.fromRYB(double red, double yellow, double blue, [double alpha = 1.0])
Load an RGB color from a RYB color
factory

Properties

alpha double
Opacity
final
analagous List<PdfColor>
Returns a list of analagous colors
read-only
blue double
Blue component
final
complementary PdfColor
Get a complementary color with hue shifted by -120°
read-only
green double
Green component
final
hashCode int
The hash code for this object. [...]
read-only, override
isDark bool
Determines whether the given PdfColor is dark.
read-only
isLight bool
Determines whether the given PdfColor is light.
read-only
luminance double
Get the luminance
read-only
monochromatic List<PdfColor>
Get some similar colors
read-only
red double
Red component
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
splitcomplementary List<PdfColor>
Returns a list of complementary colors
read-only
tetradic List<PdfColor>
Returns a list of tetradic colors
read-only
triadic List<PdfColor>
Returns a list of triadic colors
read-only

Methods

flatten({PdfColor background = const PdfColor(1, 1, 1)}) PdfColor
Apply the color transparency by updating the color values according to a background color.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
shade(double strength) PdfColor
Build a Material Color shade using the given strength. [...]
toCmyk() PdfColorCmyk
Convert this color to CMYK
toHex() String
Get an Hexadecimal representation of this color
toHsl() PdfColorHsl
Convert this color to HSL
toHsv() PdfColorHsv
Convert this color to HSV
toInt() int
Get the int32 representation of this color
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override