ChartModule constructor
const
ChartModule({
- Key? key,
- required String title,
- required ChartState state,
- Widget? chart,
- Money? headline,
- String? headlineCaption,
- bool showHeadline = true,
- String? delta,
- StatusTone deltaTone = StatusTone.neutral,
- double? height = compactHeight,
- String? emptyTitle,
- String? emptyMessage,
- String? errorMessage,
- FutureOr<
void> onRetry()?, - Widget? trailing,
Creates a chart.
Implementation
const ChartModule({
super.key,
required this.title,
required this.state,
this.chart,
this.headline,
this.headlineCaption,
this.showHeadline = true,
this.delta,
this.deltaTone = StatusTone.neutral,
this.height = compactHeight,
this.emptyTitle,
this.emptyMessage,
this.errorMessage,
this.onRetry,
this.trailing,
}) : assert(state != ChartState.ready || chart != null);