RoadOption constructor

const RoadOption({
  1. required Color roadColor,
  2. double roadWidth = 5,
  3. Color? roadBorderColor,
  4. bool zoomInto = true,
  5. bool isDotted = false,
  6. double? roadBorderWidth,
  7. List<Color>? roadGradientColors,
})

Implementation

const RoadOption({
  required this.roadColor,
  this.roadWidth = 5,
  this.roadBorderColor,
  this.zoomInto = true,
  this.isDotted = false,
  this.roadBorderWidth,
  this.roadGradientColors,
})  : assert(roadBorderWidth == null || roadBorderWidth > 0),
      assert(roadWidth > 0),
      assert(
        roadGradientColors == null || roadGradientColors.length >= 2,
        'roadGradientColors requires at least 2 colors',
      );