addBytes method Null safety
Add a field name
to the form data.
contents
will be added directly to the body, skipping encoding.
Implementation
void addBytes(String name, List<int> bytes,
{String? contentType, String? filename}) {
_isDirty = true;
_entries.add(
Entry.file(encoding.encode(name), bytes,
contentType:
contentType == null ? null : encoding.encode(contentType),
filename: filename == null ? null : encoding.encode(filename)),
);
}