InteractivePolyline<R extends Object> class
A wrapper around Polyline that adds identification and data.
Constructors
-
InteractivePolyline({required List<
LatLng> points, Key? key, double strokeWidth = 4.0, StrokePattern pattern = const StrokePattern.solid(), Color color = const Color(0xFF00FF00), double borderStrokeWidth = 0.0, Color borderColor = const Color(0xFFFFFF00), List<Color> ? gradientColors, List<double> ? colorsStop, StrokeCap strokeCap = StrokeCap.round, StrokeJoin strokeJoin = StrokeJoin.round, bool useStrokeWidthInMeter = false, R? hitValue, List<PolylineOptions> options = const []}) -
InteractivePolyline.safe({required List<
LatLng> points, Key? key, double strokeWidth = 4.0, Color color = const Color(0xFF00FF00), double borderStrokeWidth = 0.0, Color borderColor = const Color(0xFFFFFF00), List<Color> ? gradientColors, List<double> ? colorsStop, StrokeCap strokeCap = StrokeCap.round, StrokeJoin strokeJoin = StrokeJoin.round, bool useStrokeWidthInMeter = false, R? hitValue, List<PolylineOptions> options = const []}) -
factory
Properties
- actionOptions → ActionPolylineOptions?
-
no setter
- activeOptions → ActivePolylineOptions?
-
no setter
- borderColor → Color
-
The Color of the
Polylineborder.finalinherited - borderStrokeWidth → double
-
The width of the stroke with of the line border.
Defaults to 0.0 (disabled).
finalinherited
- boundingBox → LatLngBounds
-
Get the bounding box of the
points(cached).no setterinherited - color → Color
-
The color of the line stroke.
finalinherited
-
colorsStop
→ List<
double> ? -
The stops for the gradient colors.
finalinherited
- gestureOptions → GesturePolylineOptions?
-
no setter
-
gradientColors
→ List<
Color> ? -
The List of colors in case a gradient should get used.
finalinherited
- hashCode → int
-
The hash code for this object.
no setter
- hitValue → R?
-
finalinherited
- key → Key?
-
final
- labelOptions → LabelPolylineOptions?
-
no setter
-
options
→ List<
PolylineOptions> -
final
- pattern → StrokePattern
-
Determines whether the line should be solid, dotted, or dashed, and the
exact characteristics of each
finalinherited
-
points
→ List<
LatLng> -
The list of coordinates for the
Polyline.finalinherited - popupOptions → PopupPolylineOptions?
-
no setter
- renderHashCode → int
-
A for rendering purposes optimized hashCode function.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeCap → StrokeCap
-
Styles to use for line endings.
finalinherited
- strokeJoin → StrokeJoin
-
Styles to use for line segment joins.
finalinherited
- strokeWidth → double
-
The width of the stroke
finalinherited
- useStrokeWidthInMeter → bool
-
Set to true if the width of the stroke should have meters as unit.
finalinherited
Methods
-
copyWith(
{List< LatLng> ? points, StrokePattern? pattern, double? strokeWidth, Color? color, double? borderStrokeWidth, Color? borderColor, List<Color> ? gradientColors, List<double> ? colorsStop, StrokeCap? strokeCap, StrokeJoin? strokeJoin, bool? useStrokeWidthInMeter, R? hitValue, List<PolylineOptions> ? options}) → InteractivePolyline<Object> -
ensureHasKey(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withOption<
T extends PolylineOptions> (T opt) → InteractivePolyline< Object> -
withoutOption<
T extends PolylineOptions> () → InteractivePolyline< Object>
Operators
-
operator ==(
Object other) → bool - The equality operator.
Static Methods
-
fromPolyline(
Polyline< Object> polyline) → InteractivePolyline<Object>