Gradient class abstract

A 2D gradient.

Implementers
Annotations
  • @immutable

Constructors

Gradient({required List<PdfColor> colors, List<double>? stops})
Initialize the gradient's colors and stops.
const

Properties

colors List<PdfColor>
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.
final

Methods

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

Operators

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