copyWith method
Returns a copy with the given fields replaced.
Implementation
FilePart copyWith({
String? mediaType,
Uri? url,
Uint8List? bytes,
String? name,
}) =>
FilePart(
mediaType: mediaType ?? this.mediaType,
url: url ?? this.url,
bytes: bytes ?? this.bytes,
name: name ?? this.name,
);