url_params 1.6.0 url_params: ^1.6.0 copied to clipboard
This package helps to add query parameters to a Dart that appends the '?param1=one¶m2=two' to the url.
url_param: A Library For Dart/Flutter Developers. #
use as following #
Add this to your package's pubspec.yaml file under dependency:
dependencies:
url_param: ^1.0.3
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:url_params/params.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);
}
Features and bugs #
Please file feature requests and bugs at the [issue tracker][tracker]. [tracker]: https://github.com/ishaileshmishra/url_params/issues