FixedTimeline constructor
const
FixedTimeline({
- Key? key,
- TimelineThemeData? theme,
- Axis? direction,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- Clip clipBehavior = Clip.none,
- 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);