copyWith method Null safety

StatusChangeThemeData copyWith(
  1. {Axis? direction,
  2. Color? color,
  3. double? indicatorPosition,
  4. IndicatorThemeData? indicatorTheme,
  5. ConnectorThemeData? connectorTheme}

Creates a copy of this theme but with the given fields replaced with the new values.


StatusChangeThemeData copyWith({
  Axis? direction,
  Color? color,
  double? indicatorPosition,
  IndicatorThemeData? indicatorTheme,
  ConnectorThemeData? connectorTheme,
}) {
  return StatusChangeThemeData.raw(
    direction: direction ?? this.direction,
    indicatorTheme: indicatorTheme ?? this.indicatorTheme,
    connectorTheme: connectorTheme ?? this.connectorTheme,