Skip to content

Commit

Permalink
Merge pull request #3622 from rrousselGit:fix-ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
rrousselGit authored Jun 19, 2024
2 parents 63f2549 + d06e6cf commit 45fe5bb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/riverpod_generator/lib/src/templates/family.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ class FamilyTemplate extends Template {
}
}

final parameters = provider
.node.functionExpression.parameters!.parameterElements
.whereNotNull()
.skip(1)
.toList();
final parameters =
provider.node.functionExpression.parameters!.parameterElements
// ignore: deprecated_member_use, stuck with SDK >=2.x.0 for now
.whereNotNull()
.skip(1)
.toList();

final parametersPassThrough = buildParamInvocationQuery({
for (final parameter in parameters) parameter: parameter.name,
Expand Down Expand Up @@ -156,6 +157,7 @@ ${parameters.map((e) => ' ${e.name}: ${e.name},\n').join()}
}

final parameters = provider.buildMethod.parameters!.parameterElements
// ignore: deprecated_member_use, stuck with SDK >=2.x.0 for now
.whereNotNull()
.toList();
final parameterDefinition = buildParamDefinitionQuery(parameters);
Expand Down

0 comments on commit 45fe5bb

Please sign in to comment.