copyWith method
Implementation
StoryModel copyWith({
String? id,
List<StoryElement>? elements,
String? colorFiler,
List<Color>? paletteColors,
}) {
return StoryModel(
id: id ?? this.id,
)
..elements = elements ?? _elements
..colorFilter = colorFiler ?? _colorFiler
..isVideoIncluded = isVideoIncluded
..videoDuration = _videoDuration
..paletteColors = paletteColors ?? _paletteColors;
}