createTransportableFile abstract method

TransportableFile createTransportableFile(
  1. TransportableData? data,
  2. String? filename,
  3. Uri? url,
  4. DecryptKey? password,
)

Creates a TransportableFile instance with the given metadata.

Parameters:

  • data : Binary file data (encoded as TransportableData)
  • filename : Original file name (e.g., "document.pdf")
  • url : Remote CDN URL (alternative to data for large files)
  • password : Decryption key for encrypted CDN content

Returns: Initialized TransportableFile instance

Implementation

TransportableFile createTransportableFile(TransportableData? data, String? filename,
    Uri? url, DecryptKey? password);