Cap class

Cap that can be applied at the start or end vertex of a Polyline.

Annotations

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type CapType
The type of rendering used for the cap at a start or end vertex of a Polyline.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Converts this object to something serializable in JSON.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

customCapFromBitmap(BitmapDescriptor bitmapDescriptor, {double refWidth = 10}) Cap
Constructs a new CustomCap with a bitmap overlay centered at the start or end vertex of a Polyline, orientated according to the direction of the line's first or last edge and scaled with respect to the line's stroke width.

Constants

buttCap → const Cap
Cap that is squared off exactly at the start or end vertex of a Polyline with solid stroke pattern, equivalent to having no additional cap beyond the start or end vertex.
roundCap → const Cap
Cap that is a semicircle with radius equal to half the stroke width, centered at the start or end vertex of a Polyline with solid stroke pattern.
squareCap → const Cap
Cap that is squared off after extending half the stroke width beyond the start or end vertex of a Polyline with solid stroke pattern.