GraphicsGradient class

Constructors

GraphicsGradient.linear(num startX num startY num endX num endY)
GraphicsGradient.radial(num startX num startY num startRadius num endX num endY num endRadius)

Properties

colorStops ↔ List<GraphicsGradientColorStop>
read / write
endRadius ↔ num
read / write
endX ↔ num
read / write
endY ↔ num
read / write
startRadius ↔ num
read / write
startX ↔ num
read / write
startY ↔ num
read / write
type GraphicsGradientType
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addColorStop(num offset, int color) → void
disposeCachedRenderObjects([bool colorStopsChanged = true ]) → void
getCanvasGradient(CanvasRenderingContext2D context) CanvasGradient
getRenderTexture() RenderTexture
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

GRADIENT_TEXTURE_SIZE → const int
512