InteractivePolyline<R extends Object>.safe constructor

InteractivePolyline<R extends Object>.safe({
  1. required List<LatLng> points,
  2. Key? key,
  3. double strokeWidth = 4.0,
  4. Color color = const Color(0xFF00FF00),
  5. double borderStrokeWidth = 0.0,
  6. Color borderColor = const Color(0xFFFFFF00),
  7. List<Color>? gradientColors,
  8. List<double>? colorsStop,
  9. StrokeCap strokeCap = StrokeCap.round,
  10. StrokeJoin strokeJoin = StrokeJoin.round,
  11. bool useStrokeWidthInMeter = false,
  12. R? hitValue,
  13. 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),
  );
}