ChartTitle constructor

const ChartTitle({
  1. String text = '',
  2. TextStyle? textStyle,
  3. ChartAlignment alignment = ChartAlignment.center,
  4. Color borderColor = Colors.transparent,
  5. double borderWidth = 0,
  6. Color? backgroundColor,
})

Creating an argument constructor of ChartTitle class.

Implementation

const ChartTitle({
  this.text = '',
  this.textStyle,
  this.alignment = ChartAlignment.center,
  this.borderColor = Colors.transparent,
  this.borderWidth = 0,
  this.backgroundColor,
});