copyWith method
TimelineThemeData
copyWith({
- Axis? direction,
- Color? color,
- double? nodePosition,
- bool? nodeItemOverlap,
- double? indicatorPosition,
- IndicatorThemeData? indicatorTheme,
- ConnectorThemeData? connectorTheme,
Creates a copy of this theme but with the given fields replaced with the new values.
Implementation
TimelineThemeData copyWith({
Axis? direction,
Color? color,
double? nodePosition,
bool? nodeItemOverlap,
double? indicatorPosition,
IndicatorThemeData? indicatorTheme,
ConnectorThemeData? connectorTheme,
}) {
return TimelineThemeData.raw(
direction: direction ?? this.direction,
color: color ?? this.color,
nodePosition: nodePosition ?? this.nodePosition,
nodeItemOverlap: nodeItemOverlap ?? this.nodeItemOverlap,
indicatorPosition: indicatorPosition ?? this.indicatorPosition,
indicatorTheme: indicatorTheme ?? this.indicatorTheme,
connectorTheme: connectorTheme ?? this.connectorTheme,
);
}