PlTimelineItem class

One step of a PlTimeline.

A description rather than a widget, for the reason a PlBreadcrumbItem is one: the timeline has to reason about its steps. Which step is complete is arithmetic on an index, and the last step's connector has to know it is the last — neither question can be asked of an opaque Widget.

Annotations

Constructors

PlTimelineItem({Widget? title, Widget? meta, Widget? bullet, PlTimelineStatus? status, PlassColor? color, PlTimelineConnector connector = PlTimelineConnector.solid, Widget? child, Key? key})
Creates a step.
const

Properties

bullet Widget?
What goes inside the bullet: a number, an icon, an avatar. Omit it and the bullet is a plain disc, which is what a step with nothing to say about itself should be.
final
child Widget?
The body of the step.
final
color PlassColor?
Overrides the timeline's colour family for this item alone.
final
connector PlTimelineConnector
How the line to the next item is drawn.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Tells this step apart from the others, so a stateful child stays with its step when steps are added, removed or moved around it.
final
meta Widget?
When it happened — a date, a duration, a name. Set beside the title.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PlTimelineStatus?
Overrides what the timeline's PlTimeline.active would have computed for this item — a step that failed and stopped the sequence, a step that was skipped.
final
title Widget?
The heading of this step.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited