CircularChartAnnotation constructor

CircularChartAnnotation({
  1. int? angle,
  2. String? radius,
  3. Widget? widget,
  4. String? height,
  5. String? width,
  6. ChartAlignment? horizontalAlignment,
  7. ChartAlignment? verticalAlignment,
})

Creating an argument constructor of CircularChartAnnotation class.

Implementation

CircularChartAnnotation(
    {int? angle,
    String? radius,
    this.widget,
    String? height,
    String? width,
    ChartAlignment? horizontalAlignment,
    ChartAlignment? verticalAlignment})
    : angle = angle ?? 0,
      radius = radius ?? '0%',
      height = height ?? '0%',
      width = width ?? '0%',
      verticalAlignment = verticalAlignment ?? ChartAlignment.center,
      horizontalAlignment = horizontalAlignment ?? ChartAlignment.center;