DependencyTimelineView<T> constructor

const DependencyTimelineView<T>({
  1. required List<TimelineEntry<T>> entries,
  2. required List<TimelineDependency> dependencies,
  3. required TimelineDependencyNodeBuilder<T> itemBuilder,
  4. TimelineController<T>? timelineController,
  5. TimelineEntryCallback<T>? onEntryTap,
  6. TimelineThemeData? theme,
  7. double nodeWidth = 260,
  8. double nodeHeight = 126,
  9. double horizontalGap = 92,
  10. double verticalGap = 24,
  11. EdgeInsets padding = const EdgeInsets.all(28),
  12. double minScale = 0.45,
  13. double maxScale = 2.4,
  14. bool panEnabled = true,
  15. bool scaleEnabled = true,
  16. Key? key,
})

Implementation

const DependencyTimelineView({
  required this.entries,
  required this.dependencies,
  required this.itemBuilder,
  this.timelineController,
  this.onEntryTap,
  this.theme,
  this.nodeWidth = 260,
  this.nodeHeight = 126,
  this.horizontalGap = 92,
  this.verticalGap = 24,
  this.padding = const EdgeInsets.all(28),
  this.minScale = 0.45,
  this.maxScale = 2.4,
  this.panEnabled = true,
  this.scaleEnabled = true,
  super.key,
}) : assert(nodeWidth >= 120),
     assert(nodeHeight >= 64),
     assert(horizontalGap >= 24),
     assert(verticalGap >= 0),
     assert(minScale > 0),
     assert(maxScale >= minScale);