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
contains the text for the chart title.
Implementation
ChartTitle(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})
: _config = _ChartTitleConfig(
behaviorPosition: behaviorPosition ?? _defaultBehaviorPosition,
innerPadding: innerPadding ?? _defaultInnerPadding,
layoutMinSize: layoutMinSize,
layoutPreferredSize: layoutPreferredSize,
outerPadding: outerPadding ?? _defaultOuterPadding,
maxWidthStrategy: maxWidthStrategy ?? _defaultMaxWidthStrategy,
title: title,
titleDirection: titleDirection ?? _defaultTitleDirection,
titleOutsideJustification:
titleOutsideJustification ?? _defaultTitleOutsideJustification,
titlePadding: titlePadding ?? _defaultTitlePadding,
titleStyleSpec: titleStyleSpec ?? _defaultTitleStyle,
subTitle: subTitle,
subTitleStyleSpec: subTitleStyleSpec ?? _defaultSubTitleStyle,
) {
_lifecycleListener =
LifecycleListener<D>(onAxisConfigured: _updateViewData);
}