FFChartTooltipInfo constructor

FFChartTooltipInfo({
  1. bool? legacyEnableTooltip,
  2. FFColor? legacyBackgroundColor,
  3. FFBooleanValue? enableTooltipValue,
  4. FFColorValue? backgroundColorValue,
})

Implementation

factory FFChartTooltipInfo({
  $core.bool? legacyEnableTooltip,
  FFColor? legacyBackgroundColor,
  FFBooleanValue? enableTooltipValue,
  FFColorValue? backgroundColorValue,
}) {
  final result = create();
  if (legacyEnableTooltip != null)
    result.legacyEnableTooltip = legacyEnableTooltip;
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (enableTooltipValue != null)
    result.enableTooltipValue = enableTooltipValue;
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  return result;
}