TimelineNode constructor

const TimelineNode({
  1. Key? key,
  2. Axis? direction,
  3. Widget? startConnector,
  4. Widget? endConnector,
  5. Widget indicator = const ContainerIndicator(),
  6. double? indicatorPosition,
  7. double? position,
  8. bool? overlap,
})

Creates a timeline node.

The indicatorPosition must be null or a value between 0 and 1.

Implementation

const TimelineNode({
  Key? key,
  this.direction,
  this.startConnector,
  this.endConnector,
  this.indicator = const ContainerIndicator(),
  this.indicatorPosition,
  this.position,
  this.overlap,
})  : assert(indicatorPosition == null ||
          0 <= indicatorPosition && indicatorPosition <= 1),
      super(key: key);