RgbaColor class

Straight-alpha RGBA color. Channels are 0..255, alpha is 0..1.

Annotations

Constructors

RgbaColor(int r, int g, int b, [double a = 1.0])
const
RgbaColor.fromColor(Color color)
Extract straight-alpha RGBA from a Flutter Color.
factory

Properties

a → double
final
b → int
final
g → int
final
hashCode → int
The hash code for this object.
no setteroverride
r → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? r, int? g, int? b, double? a}) → RgbaColor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColor() → Color
Convert to a Flutter Color (premultiplies alpha into the ARGB int).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override