copyWith method
Returns a copy with the given values replaced.
Implementation
StoryMedia copyWith({
String? path,
int? width,
int? height,
Duration? duration,
int? rotationDegrees,
bool? hasAudio,
bool? mirrored,
}) => StoryMedia(
path: path ?? this.path,
type: type,
width: width ?? this.width,
height: height ?? this.height,
source: source,
duration: duration ?? this.duration,
rotationDegrees: rotationDegrees ?? this.rotationDegrees,
hasAudio: hasAudio ?? this.hasAudio,
mirrored: mirrored ?? this.mirrored,
mimeType: mimeType,
);