ChartModule constructor

const ChartModule({
  1. Key? key,
  2. required String title,
  3. required ChartState state,
  4. Widget? chart,
  5. Money? headline,
  6. String? headlineCaption,
  7. bool showHeadline = true,
  8. String? delta,
  9. StatusTone deltaTone = StatusTone.neutral,
  10. double? height = compactHeight,
  11. String? emptyTitle,
  12. String? emptyMessage,
  13. String? errorMessage,
  14. FutureOr<void> onRetry()?,
  15. 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);