copyWith method

VideoMedia copyWith({
  1. String? resourceId,
  2. String? mime,
  3. Path? path,
  4. bool? synced,
  5. int? createdAt,
  6. int? updatedAt,
  7. String? blurhash,
  8. int? width,
  9. int? height,
  10. int? duration,
  11. int? orientation,
  12. int? size,
})

Implementation

VideoMedia copyWith({
  String? resourceId,
  String? mime,
  Path? path,
  bool? synced,
  int? createdAt,
  int? updatedAt,
  String? blurhash,
  int? width,
  int? height,
  int? duration,
  int? orientation,
  int? size,
}) {
  return VideoMedia(
    resourceId: resourceId ?? this.resourceId,
    mime: mime ?? this.mime,
    path: path ?? this.path,
    synced: synced ?? this.synced,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
    blurhash: blurhash ?? this.blurhash,
    width: width ?? this.width,
    height: height ?? this.height,
    duration: duration ?? this.duration,
    orientation: orientation ?? this.orientation,
    size: size ?? this.size,
  );
}