copyWith method

AttachmentFile copyWith({
  1. String? path,
  2. String? name,
  3. Uint8List? bytes,
  4. int? size,
})

Creates a copy of this AttachmentFile but with the given fields replaced with the new values.

Implementation

AttachmentFile copyWith({
  String? path,
  String? name,
  Uint8List? bytes,
  int? size,
}) {
  return AttachmentFile(
    path: path ?? this.path,
    name: name ?? this.name,
    bytes: bytes ?? this.bytes,
    size: size ?? this.size,
  );
}