Allow a constructor with named parameters (dart sdk)
Please can the realm generate in flutter / dart offer an option to use named parameters in a constructor instead of requiring ordered paramaters? The rationale is that ofte we have many many parameters and it gets confusing to see which are which when many of them are integers, etc. Naming them as you go will make it easier to read. Also, please allow factory methods in the realm models that are automatically passed on / created in the generated files. eg: fromJson toJson fromCache, etc
1
vote
Mark
shared this idea
-
Kasper commented
I have put up a PR for named parameters here https://github.com/realm/realm-dart/pull/1641