GeoCustomPoints class

The GeoCustomPoints class defines a custom user-defined shape.

Constructors

GeoCustomPoints.new(List<GeoCoordinate2D> points)
Creates a new instance of GeoPolygon with n-sides

Properties

hashCode int
The hash code for this object.
no setterinherited
points List<GeoCoordinate2D>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCoordinates({required GeoAngle rotate, bool clockwise = false, required Size size, BoxFit boxFit = BoxFit.none}) List<GeoCoordinate2D>
Get list of coordinates rotated by angle rotate inside a rectangle defined by size. The coordinate are scaled to fit if boxFit is defined. Note: Depending on resolution, a rectangle may be defined to create the visual appearance of a regular polygon. Angle startAngle is defined as start from east direction, and moving counter-clockwise (towards north, west, then south)
getPath({required GeoAngle rotate, bool clockwise = false, required Size size, BoxFit boxFit = BoxFit.none, double cornerRadius = 0}) Path
Get Path based on coordinates defined and transformed based on rotation angle rotate, size of drawing area, stretched based on boxFit with corners rounded with specified cornerRadius.
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