MPDirectionsRendererOptions constructor

const MPDirectionsRendererOptions({
  1. Color? strokeColor,
  2. double? strokeOpacity,
  3. double? strokeWeight,
  4. MPStrokeStyle? strokeStyle,
  5. bool? haloEnabled,
  6. Color? haloColor,
  7. double? haloOpacity,
  8. double? haloWeight,
  9. MPRouteAnimationType? animationType,
  10. double? animationSpeed,
  11. double? animationMinDuration,
  12. bool? animationRepeating,
  13. bool? forceAnimation,
  14. Color? animatedOverlayColor,
  15. double? animatedOverlayOpacity,
  16. double? animatedOverlayWeight,
  17. bool? fitBounds,
  18. double? fitBoundsMaxZoom,
  19. EdgeInsets? fitBoundsPadding,
})

Creates a set of renderer options. Every property is optional, and the ones left out keep inheriting the CMS or built-in style.

Implementation

const MPDirectionsRendererOptions({
  this.strokeColor,
  this.strokeOpacity,
  this.strokeWeight,
  this.strokeStyle,
  this.haloEnabled,
  this.haloColor,
  this.haloOpacity,
  this.haloWeight,
  this.animationType,
  this.animationSpeed,
  this.animationMinDuration,
  this.animationRepeating,
  this.forceAnimation,
  this.animatedOverlayColor,
  this.animatedOverlayOpacity,
  this.animatedOverlayWeight,
  this.fitBounds,
  this.fitBoundsMaxZoom,
  this.fitBoundsPadding,
});