LegendItem constructor

const LegendItem({
  1. required String text,
  2. Color? color,
  3. Shader? shader,
  4. ImageProvider<Object>? imageProvider,
  5. ShapeMarkerType? iconType,
  6. double? iconStrokeWidth,
  7. ShapeMarkerType? overlayMarkerType,
  8. double? degree,
  9. double? endAngle,
  10. double? startAngle,
})

Creates a LegendItem.

Implementation

const LegendItem({
  required this.text,
  this.color,
  this.shader,
  this.imageProvider,
  this.iconType,
  this.iconStrokeWidth,
  this.overlayMarkerType,
  this.degree,
  this.endAngle,
  this.startAngle,
}) : assert(color != null || shader != null || imageProvider != null);