uri property

Uri get uri

return a Uri based on passed info without the filename

Implementation

Uri get uri => Uri(
    scheme: scheme,
    userInfo: username != null && username!.isNotEmpty
        ? '$username${password != null && password!.isNotEmpty ? ":$password" : ""}'
        : null,
    host: host != null && host!.isNotEmpty ? host : null,
    port: port != null && port!.isNotEmpty ? int.parse(port!) : null,
    path: path != null && path!.isNotEmpty ? path : null,
    //'$path${filename != null ? "/$filename" : ""}',
    query: query != null && query!.isNotEmpty ? query : null,
    fragment: fragment != null && fragment!.isNotEmpty ? fragment : null);