VehicleHistoryPanel constructor
const
VehicleHistoryPanel({
- Key? key,
- required DateTime start,
- required DateTime end,
- required ValueChanged<
DateTime> onStartChanged, - required ValueChanged<
DateTime> onEndChanged, - void onLoad()?,
- VoidCallback? onPlay,
- VoidCallback? onPause,
- VoidCallback? onStop,
- VoidCallback? onClose,
- ValueChanged<
double> ? onSeek, - ValueChanged<
double> ? onSpeedChanged, - HistoryPanelStatus status = HistoryPanelStatus.idle,
- TrajectoryState? playback,
- String? error,
- String? vehicleLabel,
- int? historyCount,
- Duration maxRange = const Duration(days: 7),
- List<
double> speedOptions = const [1, 2, 4, 8, 16], - bool disabled = false,
- Widget? header,
- Widget? body,
- bool? collapsed,
- 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,
});