LinearGradient class

A 2D linear gradient.

Inheritance

Constructors

LinearGradient({AlignmentGeometry begin = Alignment.centerLeft, AlignmentGeometry end = Alignment.centerRight, required List<PdfColor> colors, List<double>? stops, TileMode tileMode = TileMode.clamp})
Creates a linear gradient.
const

Properties

begin AlignmentGeometry
The offset at which stop 0.0 of the gradient is placed.
final
colors List<PdfColor>
finalinherited
end AlignmentGeometry
The offset at which stop 1.0 of the gradient is placed.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stops List<double>?
A list of values from 0.0 to 1.0 that denote fractions along the gradient.
finalinherited
tileMode TileMode
How this gradient should tile the plane beyond in the region before
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Context context, PdfRect box) → void
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited