window_location_href 1.0.1+2 window_location_href: ^1.0.1+2 copied to clipboard
Cross-platfrom window.location.href. Supports all platforms and is easy.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add window_location_href
With Flutter:
$ flutter pub add window_location_href
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
window_location_href: ^1.0.1+2
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:window_location_href/window_location_href.dart';