I require some of my generated realm classes to be private, so I am using two underscores and expect the generated classes to have single leading underscore.
This is working for ObjectType.realmObject, but not for ObjectType.embeddedObject.
Inside generated file, the embedded realm class doesn't have expected leading underscore inside the parent class.
Repro steps
Define data model classes (both realmObject and embeddedObject) having name with two leading underscores.
Generate realm classes dart run realm generate
Version
3.19.3 Flutter SDK, 3.3.1 Dart SDK
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
Pixel_3a_API_34_extension_level_7_x86_64
Code snippets
import 'package:realm/realm.dart';
part 'test.realm.dart';
@RealmModel(ObjectType.embeddedObject)
class __B {
late String text;
}
@RealmModel()
class __A {
@PrimaryKey()
late String id;
late List<__B> items;
}
What happened?
I require some of my generated realm classes to be private, so I am using two underscores and expect the generated classes to have single leading underscore. This is working for
ObjectType.realmObject
, but not forObjectType.embeddedObject
.Inside generated file, the embedded realm class doesn't have expected leading underscore inside the parent class.
Repro steps
realmObject
andembeddedObject
) having name with two leading underscores.dart run realm generate
Version
3.19.3 Flutter SDK, 3.3.1 Dart SDK
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
Pixel_3a_API_34_extension_level_7_x86_64
Code snippets
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response