InteractivePolyline<R extends Object>.safe constructor
InteractivePolyline<R extends Object>.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 [],
Implementation
factory 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 [],
}) {
_debugAssertNoDuplicateOptionTypes(options);
return InteractivePolyline(
key: key,
points: points,
strokeWidth: strokeWidth,
color: color,
borderStrokeWidth: borderStrokeWidth,
borderColor: borderColor,
gradientColors: gradientColors,
colorsStop: colorsStop,
strokeCap: strokeCap,
strokeJoin: strokeJoin,
useStrokeWidthInMeter: useStrokeWidthInMeter,
hitValue: hitValue,
options: List<PolylineOptions>.unmodifiable(options),
);
}