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>
getter/setter pair
endRadius num
getter/setter pair
endX num
getter/setter pair
endY num
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startRadius num
getter/setter pair
startX num
getter/setter pair
startY num
getter/setter pair
type GraphicsGradientType
getter/setter pair

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 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

Constants

GRADIENT_TEXTURE_SIZE → const int