VehicleHistoryPanel constructor

const VehicleHistoryPanel({
  1. Key? key,
  2. required DateTime start,
  3. required DateTime end,
  4. required ValueChanged<DateTime> onStartChanged,
  5. required ValueChanged<DateTime> onEndChanged,
  6. void onLoad(
    1. DateTime start,
    2. DateTime end
    )?,
  7. VoidCallback? onPlay,
  8. VoidCallback? onPause,
  9. VoidCallback? onStop,
  10. VoidCallback? onClose,
  11. ValueChanged<double>? onSeek,
  12. ValueChanged<double>? onSpeedChanged,
  13. HistoryPanelStatus status = HistoryPanelStatus.idle,
  14. TrajectoryState? playback,
  15. String? error,
  16. String? vehicleLabel,
  17. int? historyCount,
  18. Duration maxRange = const Duration(days: 7),
  19. List<double> speedOptions = const [1, 2, 4, 8, 16],
  20. bool disabled = false,
  21. Widget? header,
  22. Widget? body,
  23. Widget? footer,
  24. bool? collapsed,
  25. ValueChanged<bool>? onCollapsedChanged,
})

Implementation

const VehicleHistoryPanel({
  super.key,
  required this.start,
  required this.end,
  required this.onStartChanged,
  required this.onEndChanged,
  this.onLoad,
  this.onPlay,
  this.onPause,
  this.onStop,
  this.onClose,
  this.onSeek,
  this.onSpeedChanged,
  this.status = HistoryPanelStatus.idle,
  this.playback,
  this.error,
  this.vehicleLabel,
  this.historyCount,
  this.maxRange = const Duration(days: 7),
  this.speedOptions = const [1, 2, 4, 8, 16],
  this.disabled = false,
  this.header,
  this.body,
  this.footer,
  this.collapsed,
  this.onCollapsedChanged,
});