Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rekire committed Jul 8, 2024
1 parent fe207f9 commit 37fcfc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/freezed/lib/src/templates/copy_with.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ class $_implClassName${genericsDefinition.append('\$Res').append('\$Val extends
// ignore: unused_field
final \$Res Function(\$Val) _then;
/// Create a copy of ${data.name}
/// with the given fields replaced by the non-null parameter values.
$copyWith
${_deepCopyMethods(isConcrete: false).join()}
}
Expand All @@ -149,6 +151,8 @@ class $_implClassName${genericsDefinition.append('\$Res')} extends ${parent!._im
: super(_value, _then);
/// Create a copy of ${data.name}
/// with the given fields replaced by the non-null parameter values.
${_copyWithMethod(parametersTemplate)}
${_deepCopyMethods(isConcrete: true).join()}
Expand Down Expand Up @@ -349,6 +353,8 @@ $constructorParameters
final cast = isConcrete ? '' : 'as \$Val';

yield '''
/// Create a copy of ${data.name}
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$returnType get ${cloneableProperty.name} {
Expand Down

0 comments on commit 37fcfc6

Please sign in to comment.