createTransportableFile abstract method

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

Creates a TransportableFile instance with the given parameters.

data: Encoded file content (null if using url instead)

filename: Original filename of the file

url: CDN download URL (alternative to data)

password: Decryption key for encrypted content

Returns: New TransportableFile instance

Implementation

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