copyWith method

FileModel copyWith({
  1. String? url,
  2. String? filename,
  3. String? type,
  4. String? folder,
  5. DateTime? updatedAt,
})

Implementation

FileModel copyWith({
  String? url,
  String? filename,
  String? type,
  String? folder,
  DateTime? updatedAt,
}) =>
    FileModel(
      url: url ?? this.url,
      filename: filename ?? this.filename,
      type: type ?? this.type,
      folder: filename ?? this.folder,
      updatedAt: updatedAt ?? this.updatedAt,
    );