File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## [ 2.0.0]
2+
3+ * Wasm ready.
4+
15## [ 1.0.1+2]
26
37* href, userAgent and platform.
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2019-2021 Mahdi K. Fard
3+ Copyright (c) 2019-2025 Mahdi K. Fard
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1- import 'dart:html ' ;
1+ import 'package:web/web.dart ' ;
22import 'platform.dart' ;
33
4- /// Gets `window.location.href` on web, `null` on other platforms.
5- @Deprecated ('Please use `href`' )
6- String ? get getHref {
7- return window.location.href;
8- }
9-
104/// Gets `window.location.href` on web, `null` on other platforms.
115String ? get href {
126 return window.location.href;
Original file line number Diff line number Diff line change 11import 'dart:io' as io;
22import 'platform.dart' ;
33
4- /// Gets `window.location.href` on web, `null` on other platforms.
5- @Deprecated ('Please use `href`' )
6- String ? get getHref {
7- return null ;
8- }
9-
104/// Gets `window.location.href` on web, `null` on other platforms.
115String ? get href {
126 return null ;
Original file line number Diff line number Diff line change 11name : window_location_href
22description : Cross-platfrom window.location.href. Supports all platforms and is easy.
3- version : 1 .0.1+2
3+ version : 2 .0.0
44homepage : https://pwa.ir
5- repository : https://github.com/xclud /window_location_href
5+ repository : https://github.com/olutter /window_location_href
66
77environment :
8- sdk : ' >=2.12.0 <3.0.0'
8+ sdk : ' >=2.12.0 <4.0.0'
9+
10+ dependencies :
11+ web : ^1.1.1
912
1013dev_dependencies :
11- test : ^1.21 .0
12- lints : ^2 .0.0
14+ test : ^1.26 .0
15+ lints : ^6 .0.0
You can’t perform that action at this time.
0 commit comments