createTransportableData abstract method

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

Create 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, ...).

Implementation

TransportableData createTransportableData(Uint8List data, {
  String? encoding,
  String? mimeType,
  Mapping<String, String>? parameters,
});