Connect constructor not generated #1534
-
I cloned my code on my new machine, after which this error popped up. I didn't yet migrate to the new In my own MyDatabase.connect(DatabaseConnection connection) : super.connect(connection); But the call to super is highlighted, saying the following:
When I look into the generated abstract class _$MyDatabase extends GeneratedDatabase { Though only with a single constructor like this: _$MyDatabase(QueryExecutor e) : super(SqlTypeSystem.defaultInstance, e); Now on my old machine (and before the _$MyDatabase(QueryExecutor e) : super(SqlTypeSystem.defaultInstance, e);
_$MyDatabase.connect(DatabaseConnection c) : super.connect(c); Did something change, or did I accidentally change something myself? Thanks! As a note, if I manually add the second constructor to my generated file on the new machine, everything works as expected. Versions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to activate the required builder option: https://drift.simonbinder.eu/docs/advanced-features/builder_options/ |
Beta Was this translation helpful? Give feedback.
You need to activate the required builder option: https://drift.simonbinder.eu/docs/advanced-features/builder_options/