ChartTitle<D> constructor
ChartTitle<D> (
- String title, {
- BehaviorPosition? behaviorPosition,
- int? innerPadding,
- int? layoutMinSize,
- int? layoutPreferredSize,
- int? outerPadding,
- MaxWidthStrategy? maxWidthStrategy,
- ChartTitleDirection? titleDirection,
- OutsideJustification? titleOutsideJustification,
- int? titlePadding,
- TextStyleSpec? titleStyleSpec,
- String? subTitle,
- 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,
});