DependencyTimelineView<T> constructor
const
DependencyTimelineView<T> ({
- required List<
TimelineEntry< entries,T> > - required List<
TimelineDependency> dependencies, - required TimelineDependencyNodeBuilder<
T> itemBuilder, - TimelineController<
T> ? timelineController, - TimelineEntryCallback<
T> ? onEntryTap, - TimelineThemeData? theme,
- double nodeWidth = 260,
- double nodeHeight = 126,
- double horizontalGap = 92,
- double verticalGap = 24,
- EdgeInsets padding = const EdgeInsets.all(28),
- double minScale = 0.45,
- double maxScale = 2.4,
- bool panEnabled = true,
- bool scaleEnabled = true,
- 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);