Skip to content

Commit

Permalink
style(amplify-codegen): adds a todo comment (#820)
Browse files Browse the repository at this point in the history
Adds todo to clean up Dart codegen in next major version bump
  • Loading branch information
Equartey authored Apr 24, 2024
1 parent f83eba1 commit f217f56
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ export class AppSyncModelDartVisitor<

protected generateGetters(model: CodeGenModel, declarationBlock: DartDeclarationBlock, includeIdGetter: boolean = true): void {
if (includeIdGetter) {
// TODO: Remove at the next major version.
// Amplify Flutter V2 removes all usage of Model.getId() in favor of Model.modelIdentifier
if (this.isCustomPKEnabled()) {
const identifierFields = this.getModelIdentifierFields(model);
const isCustomPK = identifierFields[0].name !== 'id';
Expand Down

0 comments on commit f217f56

Please sign in to comment.