gradientHandlePositions property

List<Vector2D>? gradientHandlePositions
final

This field contains three vectors, each of which are a position in normalized object space (normalized object space is if the top left corner of the bounding box of the object is (0, 0) and the bottom right is (1,1)). The first position corresponds to the start of the gradient (value 0 for the purposes of calculating gradient stops), the second position is the end of the gradient (value 1), and the third handle position determines the width of the gradient. See image examples:

linear example angular example diamond example radial example

Implementation

final List<Vector2D>? gradientHandlePositions;