TimelineData class
Data model for individual timeline entries.
Represents a single item in a timeline with time information, title, optional content, and optional custom color for the indicator and connector. Used by Timeline to construct the visual timeline representation.
Example:
TimelineData(
time: Text('2:30 PM'),
title: Text('Meeting Started'),
content: Text('Weekly team sync began with all members present.'),
color: Colors.green,
);
Constructors
- TimelineData.new({required Widget time, required Widget title, Widget? content, Color? color})
- Creates a TimelineData entry for use in Timeline widgets.
Properties
- color → Color?
-
Optional custom color for this entry's indicator and connector.
final
- content → Widget?
-
Optional widget with additional details about this timeline entry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → Widget
-
Widget displaying the time or timestamp for this timeline entry.
final
- title → Widget
-
Widget displaying the main title or heading for this timeline entry.
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