copyWith method
Implementation
Rails copyWith({
String? type,
String? name,
List<Contents>? contents,
int? currentCarouselIndex,
Data? data,
}) {
return Rails(
type: type ?? this.type,
name: name ?? this.name,
contents: contents ?? this.contents,
currentCarouselIndex: currentCarouselIndex ?? this.currentCarouselIndex,
data: data ?? this.data,
);
}