copyWith method Null safety

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.


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