-
|
I was just wondering what the differences were between: IntColumn get id => integer().autoIncrement()();and late final id = integer().autoIncrement()();They seem to do the same thing but I was wondering if there was a difference in how they're used/specified. Is there a preferred one? |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
Oct 17, 2025
Replies: 1 comment 1 reply
-
|
They are supposed to behave the exact same way. The I don't really have a suggestion on which one to use, it's mostly personal preference (with a recommendation to keep it consistent within a project). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ghost-458
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They are supposed to behave the exact same way. The
late finalone is a bit newer and, depending on the definition, can be a bit simpler to use because you don't have to specify the column type again.I don't really have a suggestion on which one to use, it's mostly personal preference (with a recommendation to keep it consistent within a project).