url_params 1.0.2 copy "url_params: ^1.0.2" to clipboard
url_params: ^1.0.2 copied to clipboard

outdated

This package helps to add query parameters to a Dart that appends the '?param1=one&param2=two' to the url.

example/example.md

url_param #

use as following #

Add this to your package's pubspec.yaml file under dependency:

dependencies:
  url_param: ^1.0.2

Install it #

You can install packages from the command line:

with Flutter:

flutter pub get

Import it #

Now in your Dart code, you can use:

import 'package:params/src/base.dart';

Use it like below example #

void main() {
  var query =  URLParams();
  query.append('key', 'value');
  var result = query.toUrl('https://cdn.example.io');
  print(result);
}
3
likes
0
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

This package helps to add query parameters to a Dart that appends the '?param1=one&param2=two' to the url.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

logger, path

More

Packages that depend on url_params