createTransportableData abstract method

TransportableData createTransportableData(
  1. Uint8List data, {
  2. String? encoding,
  3. String? mimeType,
  4. MutableMapping? parameters,
})

Creates a TransportableData instance from raw data.

data is the raw binary data. encoding is the encoding algorithm name ("base64", "base58", "hex", ...). mimeType is the optional content-type ("image/jpeg", ...). parameters carries the optional extra info (charset, filename, ...).

Returns a new TransportableData instance.

Implementation

TransportableData createTransportableData(Uint8List data, {
  String? encoding,
  String? mimeType,
  MutableMapping? parameters
});