MarkerCaption constructor

MarkerCaption({
  1. required String text,
  2. ILatLong? latLong,
  3. double strokeWidth = 2.0,
  4. int strokeColor = 0xffffffff,
  5. int fillColor = 0xff000000,
  6. double fontSize = 10.0,
  7. int minZoomLevel = 0,
  8. int maxZoomLevel = 65535,
  9. Position position = Position.BELOW,
  10. double dy = 0,
  11. int strokeMinZoomLevel = DisplayModel.STROKE_MIN_ZOOMLEVEL_TEXT,
  12. required DisplayModel displayModel,
})

Implementation

MarkerCaption({
  required String text,
  ILatLong? latLong,
  double strokeWidth = 2.0,
  int strokeColor = 0xffffffff,
  int fillColor = 0xff000000,
  double fontSize = 10.0,
  int minZoomLevel = 0,
  int maxZoomLevel = 65535,
  Position position = Position.BELOW,
  double dy = 0,
  int strokeMinZoomLevel = DisplayModel.STROKE_MIN_ZOOMLEVEL_TEXT,
  required DisplayModel displayModel,
})  : assert(strokeWidth >= 0),
      assert(minZoomLevel >= 0),
      assert(minZoomLevel <= maxZoomLevel) /*assert(text.length > 0)*/,
      super(
        latLong: latLong ?? const LatLong(0, 0),
        caption: text,
        fillColor: fillColor,
        fontSize: fontSize,
        strokeColor: strokeColor,
        strokeWidth: strokeWidth,
        minZoomLevel: minZoomLevel,
        maxZoomLevel: maxZoomLevel,
        maxTextWidth: displayModel.getMaxTextWidth(),
        position: position,
        displayModel: displayModel,
        dy: dy,
        strokeMinZoomLevel: strokeMinZoomLevel,
      ) {}