copyWith method

NativeProgressStyle copyWith({
  1. bool? showProgressBar,
  2. Color? color,
  3. double? height,
})

Creates a copy of this progress style with the given fields replaced.

Implementation

NativeProgressStyle copyWith({
  bool? showProgressBar,
  Color? color,
  double? height,
}) {
  return NativeProgressStyle(
    showProgressBar: showProgressBar ?? this.showProgressBar,
    color: color ?? this.color,
    height: height ?? this.height,
  );
}