PdfGradient class

A gradient ready for a device: stops pre-sampled from the shading's function, with geometry in the space mapped by transform.

Constructors

PdfGradient({required bool isRadial, required List<double> coords, required List<PdfColor> colors, required List<double> stops, required PdfMatrix transform, bool extendStart = true, bool extendEnd = true, PdfInkColorants? inkAt(double parameter)?})
const

Properties

averageColor → PdfColor
no setter
colors → List<PdfColor>
final
coords → List<double>
Axial: [x0, y0, x1, y1]. Radial: [x0, y0, r0, x1, y1, r1].
final
extendEnd → bool
final
extendStart → bool
PDF /Extend semantics: an extended end clamps to its terminal color, an unextended end paints nothing beyond the gradient geometry.
final
hashCode → int
The hash code for this object.
no setterinherited
inkAt → PdfInkColorants? Function(double parameter)?
Device-colorant reading at normalized shading parameter 0..1.
final
isRadial → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stops → List<double>
final
transform → PdfMatrix
Maps gradient (pattern/shading) space to page space.
final

Methods

colorAt(double parameter) → PdfColor
The same piecewise-linear colour interpolation a painting device applies to the pre-sampled stops.
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