Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)

This reverts commit 5fd259be24.
This commit is contained in:
Zachary Anderson
2021-10-07 21:11:07 -07:00
committed by GitHub
parent 5fd259be24
commit b9d2177da0
667 changed files with 3385 additions and 1693 deletions

View File

@@ -15,7 +15,7 @@ Future<void> main() async {
final HttpClient client = HttpClient();
final HttpClientRequest request = await client.getUrl(Uri.parse(registry));
final HttpClientResponse response = await request.close();
final String body = (await response.cast<List<int>>().transform<String>(utf8.decoder).toList()).join();
final String body = (await response.cast<List<int>>().transform<String>(utf8.decoder).toList()).join('');
final File subtagRegistry = File('../language_subtag_registry.dart');
final File subtagRegistryFlutterTools = File('../../../../packages/flutter_tools/lib/src/localizations/language_subtag_registry.dart');

View File

@@ -118,7 +118,7 @@ class LocaleInfo implements Comparable<LocaleInfo> {
return originalString
.split('_')
.map<String>((String part) => part.substring(0, 1).toUpperCase() + part.substring(1).toLowerCase())
.join();
.join('');
}
@override
@@ -232,14 +232,17 @@ GeneratorOptions parseArgs(List<String> rawArgs) {
..addFlag(
'overwrite',
abbr: 'w',
defaultsTo: false,
)
..addFlag(
'material',
help: 'Whether to print the generated classes for the Material package only. Ignored when --overwrite is passed.',
defaultsTo: false,
)
..addFlag(
'cupertino',
help: 'Whether to print the generated classes for the Cupertino package only. Ignored when --overwrite is passed.',
defaultsTo: false,
);
final argslib.ArgResults args = argParser.parse(rawArgs);
final bool writeToFile = args['overwrite'] as bool;