copyWith method

CircularProgressIndicatorThemeData copyWith({
  1. double? size,
  2. Color? color,
  3. Color? backgroundColor,
  4. Duration? indeterminateDuration,
})

Makes a copy of CircularProgressIndicatorThemeData overwriting selected fields.

Implementation

CircularProgressIndicatorThemeData copyWith({
  double? size,
  Color? color,
  Color? backgroundColor,
  Duration? indeterminateDuration,
}) {
  return CircularProgressIndicatorThemeData(
    size: size ?? this.size,
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    indeterminateDuration:
        indeterminateDuration ?? this.indeterminateDuration,
  );
}