Skip to content

Commit

Permalink
Correct formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rekire committed Apr 12, 2024
1 parent 7be0f72 commit dfc3483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/freezed/lib/src/templates/abstract_template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ${copyWith?.commonConcreteImpl ?? ''}
data.genericsParameterTemplate, data.genericArgumentFactories);
String get _toJson {
if (!data.generateToJson) return '';
return '/// Serializes this ${data.name} to a JSON map.\n'
return '/// Serializes this ${data.name} to a JSON map.\n'
'Map<String, dynamic> toJson($_toJsonParams)'
' => throw $privConstUsedErrorVarName;';
}
Expand Down
2 changes: 1 addition & 1 deletion packages/freezed/lib/src/templates/properties.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class Getter {

@override
String toString({bool shouldOverride = false}) {
final finalDecorators = [if(shouldOverride)'@override', ...decorators];
final finalDecorators = [if (shouldOverride) '@override', ...decorators];
return '$doc${finalDecorators.join()} $type get $name$body';
}
}
Expand Down

0 comments on commit dfc3483

Please sign in to comment.