Enable no_leading_underscores_for_local_identifiers (#96422)

This commit is contained in:
Michael Goderbauer
2022-01-21 14:43:59 -08:00
committed by GitHub
parent 53ca7f684a
commit 5684b9f69e
89 changed files with 948 additions and 949 deletions

View File

@@ -152,11 +152,11 @@ class PathUrlStrategy extends HashUrlStrategy {
/// The [PlatformLocation] parameter is useful for testing to mock out browser
/// interactions.
PathUrlStrategy([
PlatformLocation _platformLocation = const BrowserPlatformLocation(),
PlatformLocation platformLocation = const BrowserPlatformLocation(),
]) : _basePath = stripTrailingSlash(extractPathname(checkBaseHref(
_platformLocation.getBaseHref(),
platformLocation.getBaseHref(),
))),
super(_platformLocation);
super(platformLocation);
final String _basePath;

View File

@@ -92,8 +92,8 @@ class PathUrlStrategy extends HashUrlStrategy {
///
/// The [PlatformLocation] parameter is useful for testing to mock out browser
/// interations.
PathUrlStrategy([PlatformLocation? _platformLocation])
: super(_platformLocation);
PathUrlStrategy([PlatformLocation? platformLocation])
: super(platformLocation);
@override
String getPath() => '';