getDownloadLink method

Uri getDownloadLink(
  1. Client matrix
)

Returns a download Link to this content.

Implementation

Uri getDownloadLink(Client matrix) => isScheme('mxc')
    ? matrix.homeserver != null
        ? matrix.homeserver?.resolve(
                '_matrix/media/v3/download/$host${hasPort ? ':$port' : ''}$path') ??
            Uri()
        : Uri()
    : this;