copyWith method
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
MdDivider copyWith({
double? dividerHeight,
Color? dividerColor,
double? dividerThickness,
}) {
return MdDivider(
dividerHeight: dividerHeight ?? this.dividerHeight,
dividerColor: dividerColor ?? this.dividerColor,
dividerThickness: dividerThickness ?? this.dividerThickness,
);
}