copyWith method

TimelineThemeData copyWith({
  1. Axis? direction,
  2. Color? color,
  3. double? nodePosition,
  4. bool? nodeItemOverlap,
  5. double? indicatorPosition,
  6. IndicatorThemeData? indicatorTheme,
  7. 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,
  );
}