LegendItem constructor
const
LegendItem({
- required String text,
- Color? color,
- Shader? shader,
- ImageProvider<
Object> ? imageProvider, - ShapeMarkerType? iconType,
- double? iconStrokeWidth,
- ShapeMarkerType? overlayMarkerType,
- double? degree,
- double? endAngle,
- 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);