FixedTimeline constructor

const FixedTimeline({
  1. Key? key,
  2. TimelineThemeData? theme,
  3. Axis? direction,
  4. MainAxisSize mainAxisSize = MainAxisSize.max,
  5. TextDirection? textDirection,
  6. VerticalDirection verticalDirection = VerticalDirection.down,
  7. Clip clipBehavior = Clip.none,
  8. List<Widget> children = const [],
})

Creates a timeline flex layout.

The direction, verticalDirection arguments must not be null.

The textDirection argument defaults to the ambient Directionality, if any. If there is no ambient directionality, and a text direction is going to be necessary to decide which direction to lay the children in or to disambiguate start or end values for the main or cross axis directions, the textDirection must not be null.

Implementation

const FixedTimeline({
  Key? key,
  this.theme,
  this.direction,
  this.mainAxisSize = MainAxisSize.max,
  this.textDirection,
  this.verticalDirection = VerticalDirection.down,
  this.clipBehavior = Clip.none,
  this.children = const [],
})  : assert(direction == null || theme == null,
          'Cannot provide both a direction and a theme.'),
      super(key: key);