copyWith method

ProgressIndicatorThemeData copyWith({
  1. Color? color,
  2. Color? linearTrackColor,
  3. double? linearMinHeight,
  4. Color? circularTrackColor,
  5. Color? refreshBackgroundColor,
})

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

Implementation

ProgressIndicatorThemeData copyWith({
  Color? color,
  Color? linearTrackColor,
  double? linearMinHeight,
  Color? circularTrackColor,
  Color? refreshBackgroundColor,
}) {
  return ProgressIndicatorThemeData(
    color: color ?? this.color,
    linearTrackColor : linearTrackColor ?? this.linearTrackColor,
    linearMinHeight : linearMinHeight ?? this.linearMinHeight,
    circularTrackColor : circularTrackColor ?? this.circularTrackColor,
    refreshBackgroundColor : refreshBackgroundColor ?? this.refreshBackgroundColor,
  );
}