copyWith method

StoryMedia copyWith({
  1. String? path,
  2. int? width,
  3. int? height,
  4. Duration? duration,
  5. int? rotationDegrees,
  6. bool? hasAudio,
  7. bool? mirrored,
})

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,
);