Skip to content

flutter-cavalry/append_uri_component

Repository files navigation

pub package Build Status

Append a component to a Dart Uri.

Usage

import 'package:append_uri_component/append_uri_component.dart';

void main() {
  var dirUri = Uri.directory('/a/b');
  print(dirUri.appendUriComponent('hello 🌏', isDirectory: true));
  // 'file:///a/b/hello%20%F0%9F%8C%8F/'

  print(dirUri.appendUriComponents(['a', 'b', 'c'], isDirectory: false));
  // 'file:///a/b/a/b/c'
}

About

Append a component to a Dart `Uri`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages