Skip to content

Commit 4f606f7

Browse files
authored
Fix formatting (#137613)
Badly formatted code causes distraction when reading, and costs people energy when understanding code.
1 parent 69c2ab4 commit 4f606f7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/flutter_tools/lib/src/base/version_range.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'package:meta/meta.dart' show immutable;
1010
/// Both the [versionMin] and [versionMax] are inclusive versions, and undefined
1111
/// values represent an unknown minimum/maximum version.
1212
@immutable
13-
class VersionRange{
13+
class VersionRange {
1414
const VersionRange(
1515
this.versionMin,
1616
this.versionMax,

packages/flutter_tools/lib/src/project_validator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class VariableDumpMachineProjectValidator extends MachineProjectValidator {
205205
/// Validator run for all platforms that extract information from the pubspec.yaml.
206206
///
207207
/// Specific info from different platforms should be written in their own ProjectValidator.
208-
class GeneralInfoProjectValidator extends ProjectValidator{
208+
class GeneralInfoProjectValidator extends ProjectValidator {
209209
@override
210210
Future<List<ProjectValidatorResult>> start(FlutterProject project) async {
211211
final FlutterManifest flutterManifest = project.manifest;
@@ -316,7 +316,7 @@ class PubDependenciesProjectValidator extends ProjectValidator {
316316
jsonResult = json.decode(
317317
processResult.stdout.toString()
318318
) as LinkedHashMap<String, dynamic>;
319-
} on FormatException{
319+
} on FormatException {
320320
result.add(_createProjectValidatorError(name, processResult.stderr.toString()));
321321
return result;
322322
}

packages/flutter_tools/test/commands.shard/hermetic/analyze_suggestion_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import '../../src/test_flutter_command_runner.dart';
2020

2121
class ProjectValidatorDummy extends ProjectValidator {
2222
@override
23-
Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async{
23+
Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async {
2424
return <ProjectValidatorResult>[
2525
const ProjectValidatorResult(name: 'pass', value: 'value', status: StatusProjectValidator.success),
2626
const ProjectValidatorResult(name: 'fail', value: 'my error', status: StatusProjectValidator.error),
@@ -39,7 +39,7 @@ class ProjectValidatorDummy extends ProjectValidator {
3939

4040
class ProjectValidatorSecondDummy extends ProjectValidator {
4141
@override
42-
Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async{
42+
Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async {
4343
return <ProjectValidatorResult>[
4444
const ProjectValidatorResult(name: 'second', value: 'pass', status: StatusProjectValidator.success),
4545
const ProjectValidatorResult(name: 'other fail', value: 'second fail', status: StatusProjectValidator.error),
@@ -57,7 +57,7 @@ class ProjectValidatorSecondDummy extends ProjectValidator {
5757

5858
class ProjectValidatorCrash extends ProjectValidator {
5959
@override
60-
Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async{
60+
Future<List<ProjectValidatorResult>> start(FlutterProject project, {Logger? logger, FileSystem? fileSystem}) async {
6161
throw Exception('my exception');
6262
}
6363

0 commit comments

Comments
 (0)