UiPath class

A wrapper around Flutter's ui.Path to simplify path creation and drawing for map rendering.

This class provides methods for adding points, lines, and rectangles to a path. It also includes custom logic for drawing dashed lines, which is not natively supported by Flutter's Canvas.drawPath in all cases.

Constructors

UiPath()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRect(UiRect rect) → void
Adds a closed rectangle to the path.
clear() → void
Clears the path and resets all internal state.
close() → void
Closes the current sub-path by connecting the last point to the first.
drawDash(UiPaint paint, Canvas uiCanvas) → void
Draws a dashed line along the path.
drawPath(UiPaint paint, Canvas uiCanvas) → void
Draws the path on the given canvas with the specified paint.
isEmpty() → bool
Returns true if the path is empty.
lineTo(double x, double y) → void
Adds a straight line segment from the current point to the given point.
lineToMappoint(MappointRelative point) → void
Adds a straight line segment from the current point to the given MappointRelative.
moveTo(double x, double y) → void
Starts a new sub-path at the given point.
moveToMappoint(MappointRelative point) → void
Starts a new sub-path at the given MappointRelative.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFillRule(MapFillRule fillRule) → void
Sets the fill rule for this path.
toString() → String
A string representation of this object.
override

Operators

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