ChartTitle<D> constructor

ChartTitle<D>(
  1. String title, {
  2. BehaviorPosition? behaviorPosition,
  3. int? innerPadding,
  4. int? layoutMinSize,
  5. int? layoutPreferredSize,
  6. int? outerPadding,
  7. MaxWidthStrategy? maxWidthStrategy,
  8. ChartTitleDirection? titleDirection,
  9. OutsideJustification? titleOutsideJustification,
  10. int? titlePadding,
  11. TextStyleSpec? titleStyleSpec,
  12. String? subTitle,
  13. TextStyleSpec? subTitleStyleSpec,
})

Constructs a ChartTitle.

title primary text for the title.

behaviorPosition layout position for the title. Defaults to the top of the chart.

innerPadding space between the "inside" of the chart, and the title behavior itself.

maxWidthStrategy strategy for handling title text that is too large to fit. Defaults to truncating the text with ellipses.

titleDirection direction of the chart title text.

titleOutsideJustification Justification of the title text if it is positioned outside of the draw. Defaults to the middle of the margin area.

titlePadding space between the title and sub-title text, if defined.

titleStyleSpec style of the title text.

subTitle secondary text for the sub-title. Optional.

subTitleStyleSpec style of the subTitle text.

Implementation

ChartTitle(
  this.title, {
  this.behaviorPosition,
  this.innerPadding,
  this.layoutMinSize,
  this.layoutPreferredSize,
  this.outerPadding,
  this.maxWidthStrategy,
  this.titleDirection,
  this.titleOutsideJustification,
  this.titlePadding,
  this.titleStyleSpec,
  this.subTitle,
  this.subTitleStyleSpec,
});