Prepare packages (minus tools,framework) for use_super_parameters (#100510)

This commit is contained in:
Michael Goderbauer
2022-03-30 15:31:59 -07:00
committed by GitHub
parent ca2d60e8e2
commit 3e406c6781
37 changed files with 147 additions and 183 deletions

View File

@@ -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;

View File

@@ -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() => '';

View File

@@ -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: