TimelineNode constructor

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

Implementation

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