legendItem function

Widget legendItem({
  1. Key? key,
  2. required String label,
  3. required Color color,
  4. LegendSymbolShape symbolShape = LegendSymbolShape.circle,
  5. double symbolSize = 12,
  6. double symbolLabelSpacing = 4,
  7. TextStyle? labelStyle,
  8. VoidCallback? onTap,
  9. bool isSelected = true,
  10. double inactiveOpacity = 0.3,
})

Creates a LegendItem widget.

Implementation

Widget legendItem({
  Key? key,
  required String label,
  required Color color,
  LegendSymbolShape symbolShape = LegendSymbolShape.circle,
  double symbolSize = 12,
  double symbolLabelSpacing = 4,
  TextStyle? labelStyle,
  VoidCallback? onTap,
  bool isSelected = true,
  double inactiveOpacity = 0.3,
}) {
  return LegendItem(
    key: key,
    label: label,
    color: color,
    symbolShape: symbolShape,
    symbolSize: symbolSize,
    symbolLabelSpacing: symbolLabelSpacing,
    labelStyle: labelStyle,
    onTap: onTap,
    isSelected: isSelected,
    inactiveOpacity: inactiveOpacity,
  );
}