copyWith method

DividerThemeData copyWith (
  1. {Color color,
  2. double space,
  3. double thickness,
  4. double indent,
  5. double endIndent}
)

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

Implementation

DividerThemeData copyWith({
  Color color,
  double space,
  double thickness,
  double indent,
  double endIndent,
}) {
  return DividerThemeData(
    color: color ?? this.color,
    space: space ?? this.space,
    thickness: thickness ?? this.thickness,
    indent: indent ?? this.indent,
    endIndent: endIndent ?? this.endIndent,
  );
}