LineShader class

Inheritance

Constructors

LineShader(List<Color> colors, {Offset from = const Offset(0, 0.5), Offset to = const Offset(1, 0.5), List<double>? colorStops, TileMode tileMode = TileMode.clamp, Float64List? matrix4})
const

Properties

colors List<Color>
final
colorStops List<double>?
final
from Offset
表示渐变的偏移量dx,dy取值范围从从0,1
final
hashCode int
The hash code for this object.
no setterinherited
matrix4 Float64List?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileMode TileMode
final
to Offset
final

Methods

convert(covariant LineShader begin, covariant LineShader end, double animatorPercent) Shader
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toShader(Rect rect, double? colorOpacity) Shader
override
toString() String
A string representation of this object.
inherited

Operators

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