File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44* None
55
66### Fixed
7- * None
7+ * Private fields did not work with default values. (Issue [ # 1663 ] ( https://github.com/realm/realm-dart/issues/1663 ) )
88
99### Compatibility
1010* Realm Studio: 15.0.0 or later.
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class RealmModelInfo {
146146 yield '} => $name (' ;
147147 {
148148 yield * positional.map ((f) => 'fromEJson(${f .name }),' );
149- yield * named.map ((f) => '${f . name }: fromEJson(${f .name }),' );
149+ yield * named.map ((f) => '${paramName ( f ) }: fromEJson(${f .name }),' );
150150 }
151151 yield '),' ;
152152 yield '_ => raiseInvalidEJson(ejson),' ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class WithPrivateFields extends _WithPrivateFields
6666 } =>
6767 WithPrivateFields(
6868 fromEJson(_plain),
69- _withDefault : fromEJson(_withDefault),
69+ withDefault : fromEJson(_withDefault),
7070 ),
7171 _ => raiseInvalidEJson(ejson),
7272 };
You can’t perform that action at this time.
0 commit comments