build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Implementation

@override
Widget build(BuildContext context) {
  return CustomPaint(
    painter: AmpPainter(
      data: List<double>.from(data),
      area: area,
      minRatio: minRatio,
      lineWidth: lineWidth,
      lineColor: lineColor,
      spaceWidth: spaceWidth,
      horLineColor: horLineColor,
      horLineWidth: horLineWidth,
      hasHorLine: hasHorLine,
    ),
  );
}