Labels constructor

const Labels({
  1. required String getLabelText(
    1. int index,
    2. double value
    )?,
  2. TextAlign textAlign = TextAlign.start,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. double offset = 0,
  5. TextStyle? style,
})

Creates a new Labels instance.

The getLabelText function is required, while textAlign, padding, offset, and style are optional parameters.

Implementation

const Labels({
  required this.getLabelText,
  this.textAlign = TextAlign.start,
  this.padding = EdgeInsets.zero,
  this.offset = 0,
  this.style,
});