getBarTooltipItem static method

BarTooltipItem getBarTooltipItem(
  1. String text, {
  2. Color? color,
})

Implementation

static BarTooltipItem getBarTooltipItem(String text, {Color? color}) {
  return BarTooltipItem(
    text,
    TextStyle(
      color: color ?? Colors.white,
      fontSize: 12.sp,
      fontWeight: FontWeight.w400,
    ),
    textAlign: TextAlign.left,
  );
}