JsonBlob class

A binary file part carried through JsonForm.

Stands in for the platform Blob / File of the upstream JS codec: any JsonBlob in a tree is split out into a multipart part named by its dotted path, and re-attached as a JsonBlob on decode. Part names carry a filename parameter whenever filename is non-null; an absent filename is encoded as filename="" so the part still round-trips as a file.

Constructors

JsonBlob(List<int> bytes, {String? filename, String? contentType})

Properties

bytes → List<int>
Raw file bytes; never transcoded.
final
contentType → String?
Optional MIME type of bytes, emitted as the part's Content-Type.
final
filename → String?
Optional form filename, emitted as the filename disposition parameter.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override