MarkerSettings constructor

const MarkerSettings({
  1. bool? isVisible,
  2. double? height = 8,
  3. double? width = 8,
  4. Color? color,
  5. DataMarkerType? shape,
  6. double? borderWidth,
  7. Color? borderColor,
  8. ImageProvider<Object>? image,
})

Creating an argument constructor of MarkerSettings class.

Implementation

const MarkerSettings(
    {bool? isVisible,
    double? height = 8,
    double? width = 8,
    this.color,
    DataMarkerType? shape,
    double? borderWidth,
    this.borderColor,
    this.image})
    : isVisible = isVisible ?? false,
      height = height ?? 8,
      width = width ?? 8,
      shape = shape ?? DataMarkerType.circle,
      borderWidth = borderWidth ?? 2;