GuiShapeCustom class

The GuiShapeCustom class defines a custom shape defined by a set of points connected in sequence.

Implemented types

Constructors

GuiShapeCustom({required List<GeoCoordinate2D> points, required GeoAngle rotate, bool clockwise = false, BoxFit boxFit = BoxFit.none, double cornerRadius = 0})

Properties

boxFit BoxFit
Resize custom shape to fit rendering area.
final
clockwise bool
Direction of rotation
final
cornerRadius double
Radius of smoothing or curving corners of the shape.
final
hashCode int
The hash code for this object.
no setterinherited
points List<GeoCoordinate2D>
A list of points defined by (x,y) where (0,0) is top left corner, and (n,m) are coordinates to the right and down.
final
rotate GeoAngle
Angle of rotation. During rendering, the points will be rotated by the angle of rotation rotate.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPath({required Size size}) Path
Retrieve Path of shape
override
lerpFrom(IGuiShape shape, double t) IGuiShape
Linearly interpolate from other shape to this shape by an extrapolation factor t.
override
lerpTo(IGuiShape shape, double t) IGuiShape
Linearly interpolate from this shape to other shape by an extrapolation factor t.
override
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