Prepare packages (minus tools,framework) for use_super_parameters (#100510)
This commit is contained in:
committed by
GitHub
parent
ca2d60e8e2
commit
3e406c6781
@@ -152,11 +152,10 @@ class PathUrlStrategy extends HashUrlStrategy {
|
||||
/// The [PlatformLocation] parameter is useful for testing to mock out browser
|
||||
/// interactions.
|
||||
PathUrlStrategy([
|
||||
PlatformLocation platformLocation = const BrowserPlatformLocation(),
|
||||
super.platformLocation,
|
||||
]) : _basePath = stripTrailingSlash(extractPathname(checkBaseHref(
|
||||
platformLocation.getBaseHref(),
|
||||
))),
|
||||
super(platformLocation);
|
||||
)));
|
||||
|
||||
final String _basePath;
|
||||
|
||||
|
||||
@@ -92,8 +92,7 @@ class PathUrlStrategy extends HashUrlStrategy {
|
||||
///
|
||||
/// The [PlatformLocation] parameter is useful for testing to mock out browser
|
||||
/// interations.
|
||||
PathUrlStrategy([PlatformLocation? platformLocation])
|
||||
: super(platformLocation);
|
||||
PathUrlStrategy([super.platformLocation]);
|
||||
|
||||
@override
|
||||
String getPath() => '';
|
||||
|
||||
@@ -3,7 +3,7 @@ description: Library to register Flutter Web plugins
|
||||
homepage: https://flutter.dev
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0-0 <3.0.0"
|
||||
sdk: ">=2.17.0-0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
Reference in New Issue
Block a user