copyWith method
DocumentsModel
copyWith(
{ - DateTime? createdAt,
- String? id,
- Map<String, dynamic>? metadata,
- String? name,
- String? path,
- String? referenceNumber,
- int? size,
- String? type,
- DateTime? updatedAt,
- String? url,
})
Implementation
DocumentsModel copyWith({
DateTime? createdAt,
String? id,
Map<String, dynamic>? metadata,
String? name,
String? path,
String? referenceNumber,
int? size,
String? type,
DateTime? updatedAt,
String? url,
}) {
return DocumentsModel(
createdAt: createdAt ?? this.createdAt,
id: id ?? this.id,
metadata: metadata ?? this.metadata,
name: name ?? this.name,
path: path ?? this.path,
referenceNumber: referenceNumber ?? this.referenceNumber,
size: size ?? this.size,
type: type ?? this.type,
updatedAt: updatedAt ?? this.updatedAt,
url: url ?? this.url,
);
}