copyWith method

DividerSettings copyWith({
  1. double? indent,
  2. double? endIndent,
  3. double? thickness,
  4. BoxDecoration? decoration,
  5. Duration? duration,
  6. Curve? curve,
  7. bool? isHideAutomatically,
})

Returns a copy of this DividerSettings with the given fields replaced.

Implementation

DividerSettings copyWith({
  double? indent,
  double? endIndent,
  double? thickness,
  BoxDecoration? decoration,
  Duration? duration,
  Curve? curve,
  bool? isHideAutomatically,
}) {
  return DividerSettings(
    indent: indent ?? this.indent,
    endIndent: endIndent ?? this.endIndent,
    thickness: thickness ?? this.thickness,
    decoration: decoration ?? this.decoration,
    duration: duration ?? this.duration,
    curve: curve ?? this.curve,
    isHideAutomatically: isHideAutomatically ?? this.isHideAutomatically,
  );
}