Skip to content

Commit f217f56

Browse files
authored
style(amplify-codegen): adds a todo comment (#820)
Adds todo to clean up Dart codegen in next major version bump
1 parent f83eba1 commit f217f56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/appsync-modelgen-plugin/src/visitors/appsync-dart-visitor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ export class AppSyncModelDartVisitor<
448448

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

0 commit comments

Comments
 (0)