From 2e8b1fdaf860cbf34ed0def0cf7909c8b5668d62 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 21 Aug 2024 01:31:04 +0200 Subject: [PATCH] Regenerate bindings --- .../src/handles/native/realm_bindings.dart | 424 ---- .../realm_dart/test/realm_logger_test.dart | 4 +- packages/realm_dart/test/test.realm.dart | 1747 +++++++++++------ 3 files changed, 1185 insertions(+), 990 deletions(-) diff --git a/packages/realm_dart/lib/src/handles/native/realm_bindings.dart b/packages/realm_dart/lib/src/handles/native/realm_bindings.dart index bb00e2f80..e1ffb265c 100644 --- a/packages/realm_dart/lib/src/handles/native/realm_bindings.dart +++ b/packages/realm_dart/lib/src/handles/native/realm_bindings.dart @@ -3359,87 +3359,6 @@ class RealmLibrary { ffi.Pointer Function( ffi.Pointer)>(); - void realm_dart_apikey_callback( - ffi.Pointer userdata, - ffi.Pointer apikey, - ffi.Pointer error, - ) { - return _realm_dart_apikey_callback( - userdata, - apikey, - error, - ); - } - - late final _realm_dart_apikey_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('realm_dart_apikey_callback'); - late final _realm_dart_apikey_callback = - _realm_dart_apikey_callbackPtr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void realm_dart_apikey_list_callback( - ffi.Pointer userdata, - ffi.Pointer apikey_list, - int count, - ffi.Pointer error, - ) { - return _realm_dart_apikey_list_callback( - userdata, - apikey_list, - count, - error, - ); - } - - late final _realm_dart_apikey_list_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer)>>( - 'realm_dart_apikey_list_callback'); - late final _realm_dart_apikey_list_callback = - _realm_dart_apikey_list_callbackPtr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - void realm_dart_async_open_task_callback( - ffi.Pointer userdata, - ffi.Pointer realm, - ffi.Pointer error, - ) { - return _realm_dart_async_open_task_callback( - userdata, - realm, - error, - ); - } - - late final _realm_dart_async_open_task_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'realm_dart_async_open_task_callback'); - late final _realm_dart_async_open_task_callback = - _realm_dart_async_open_task_callbackPtr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - void realm_dart_attach_logger( int port, ) { @@ -3813,27 +3732,6 @@ class RealmLibrary { late final _realm_dart_get_thread_id = _realm_dart_get_thread_idPtr.asFunction(); - void realm_dart_http_request_callback( - ffi.Pointer userdata, - realm_http_request_t request, - ffi.Pointer request_context, - ) { - return _realm_dart_http_request_callback( - userdata, - request, - request_context, - ); - } - - late final _realm_dart_http_request_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, realm_http_request_t, - ffi.Pointer)>>('realm_dart_http_request_callback'); - late final _realm_dart_http_request_callback = - _realm_dart_http_request_callbackPtr.asFunction< - void Function(ffi.Pointer, realm_http_request_t, - ffi.Pointer)>(); - void realm_dart_init_debug_logger() { return _realm_dart_init_debug_logger(); } @@ -3936,28 +3834,6 @@ class RealmLibrary { _realm_dart_persistent_handle_to_objectPtr .asFunction)>(); - void realm_dart_return_string_callback( - ffi.Pointer userdata, - ffi.Pointer serialized_ejson_response, - ffi.Pointer error, - ) { - return _realm_dart_return_string_callback( - userdata, - serialized_ejson_response, - error, - ); - } - - late final _realm_dart_return_string_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'realm_dart_return_string_callback'); - late final _realm_dart_return_string_callback = - _realm_dart_return_string_callbackPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - void realm_dart_scheduler_invoke( int isolateId, ffi.Pointer userData, @@ -4002,193 +3878,6 @@ class RealmLibrary { late final _realm_dart_set_and_get_rlimit = _realm_dart_set_and_get_rlimitPtr .asFunction)>(); - bool realm_dart_sync_after_reset_handler_callback( - ffi.Pointer userdata, - ffi.Pointer before_realm, - ffi.Pointer after_realm, - bool did_recover, - ) { - return _realm_dart_sync_after_reset_handler_callback( - userdata, - before_realm, - after_realm, - did_recover, - ); - } - - late final _realm_dart_sync_after_reset_handler_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('realm_dart_sync_after_reset_handler_callback'); - late final _realm_dart_sync_after_reset_handler_callback = - _realm_dart_sync_after_reset_handler_callbackPtr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - bool realm_dart_sync_before_reset_handler_callback( - ffi.Pointer userdata, - ffi.Pointer realm, - ) { - return _realm_dart_sync_before_reset_handler_callback( - userdata, - realm, - ); - } - - late final _realm_dart_sync_before_reset_handler_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)>>( - 'realm_dart_sync_before_reset_handler_callback'); - late final _realm_dart_sync_before_reset_handler_callback = - _realm_dart_sync_before_reset_handler_callbackPtr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); - - void realm_dart_sync_connection_state_changed_callback( - ffi.Pointer userdata, - int old_state, - int new_state, - ) { - return _realm_dart_sync_connection_state_changed_callback( - userdata, - old_state, - new_state, - ); - } - - late final _realm_dart_sync_connection_state_changed_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32, - ffi.Int32)>>('realm_dart_sync_connection_state_changed_callback'); - late final _realm_dart_sync_connection_state_changed_callback = - _realm_dart_sync_connection_state_changed_callbackPtr - .asFunction, int, int)>(); - - void realm_dart_sync_error_handler_callback( - ffi.Pointer userdata, - ffi.Pointer session, - realm_sync_error_t error, - ) { - return _realm_dart_sync_error_handler_callback( - userdata, - session, - error, - ); - } - - late final _realm_dart_sync_error_handler_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - realm_sync_error_t)>>('realm_dart_sync_error_handler_callback'); - late final _realm_dart_sync_error_handler_callback = - _realm_dart_sync_error_handler_callbackPtr.asFunction< - void Function(ffi.Pointer, - ffi.Pointer, realm_sync_error_t)>(); - - void realm_dart_sync_on_subscription_state_changed_callback( - ffi.Pointer userdata, - int state, - ) { - return _realm_dart_sync_on_subscription_state_changed_callback( - userdata, - state, - ); - } - - late final _realm_dart_sync_on_subscription_state_changed_callbackPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32)>>( - 'realm_dart_sync_on_subscription_state_changed_callback'); - late final _realm_dart_sync_on_subscription_state_changed_callback = - _realm_dart_sync_on_subscription_state_changed_callbackPtr - .asFunction, int)>(); - - void realm_dart_sync_progress_callback( - ffi.Pointer userdata, - int transferred_bytes, - int total_bytes, - double estimate, - ) { - return _realm_dart_sync_progress_callback( - userdata, - transferred_bytes, - total_bytes, - estimate, - ); - } - - late final _realm_dart_sync_progress_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Uint64, ffi.Uint64, - ffi.Double)>>('realm_dart_sync_progress_callback'); - late final _realm_dart_sync_progress_callback = - _realm_dart_sync_progress_callbackPtr - .asFunction, int, int, double)>(); - - void realm_dart_sync_wait_for_completion_callback( - ffi.Pointer userdata, - ffi.Pointer error, - ) { - return _realm_dart_sync_wait_for_completion_callback( - userdata, - error, - ); - } - - late final _realm_dart_sync_wait_for_completion_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>( - 'realm_dart_sync_wait_for_completion_callback'); - late final _realm_dart_sync_wait_for_completion_callback = - _realm_dart_sync_wait_for_completion_callbackPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); - - void realm_dart_user_change_callback( - ffi.Pointer userdata, - int state, - ) { - return _realm_dart_user_change_callback( - userdata, - state, - ); - } - - late final _realm_dart_user_change_callbackPtr = _lookup< - ffi - .NativeFunction, ffi.Int32)>>( - 'realm_dart_user_change_callback'); - late final _realm_dart_user_change_callback = - _realm_dart_user_change_callbackPtr - .asFunction, int)>(); - - void realm_dart_user_completion_callback( - ffi.Pointer userdata, - ffi.Pointer user, - ffi.Pointer error, - ) { - return _realm_dart_user_completion_callback( - userdata, - user, - error, - ); - } - - late final _realm_dart_user_completion_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - 'realm_dart_user_completion_callback'); - late final _realm_dart_user_completion_callback = - _realm_dart_user_completion_callbackPtr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - void realm_dart_userdata_async_free( ffi.Pointer userdata, ) { @@ -4226,26 +3915,6 @@ class RealmLibrary { realm_dart_userdata_async_t Function( Object, ffi.Pointer, ffi.Pointer)>(); - void realm_dart_void_completion_callback( - ffi.Pointer userdata, - ffi.Pointer error, - ) { - return _realm_dart_void_completion_callback( - userdata, - error, - ); - } - - late final _realm_dart_void_completion_callbackPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>( - 'realm_dart_void_completion_callback'); - late final _realm_dart_void_completion_callback = - _realm_dart_void_completion_callbackPtr.asFunction< - void Function( - ffi.Pointer, ffi.Pointer)>(); - /// Deletes the following files for the given `realm_file_path` if they exist: /// - the Realm file itself /// - the .management folder @@ -11713,30 +11382,6 @@ class RealmLibrary { class _SymbolAddresses { final RealmLibrary _library; _SymbolAddresses(this._library); - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>> - get realm_dart_apikey_callback => _library._realm_dart_apikey_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Size, - ffi.Pointer)>> - get realm_dart_apikey_list_callback => - _library._realm_dart_apikey_list_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>> - get realm_dart_async_open_task_callback => - _library._realm_dart_async_open_task_callbackPtr; ffi.Pointer> get realm_dart_attach_logger => _library._realm_dart_attach_loggerPtr; ffi.Pointer< @@ -11829,11 +11474,6 @@ class _SymbolAddresses { get realm_dart_get_files_path => _library._realm_dart_get_files_pathPtr; ffi.Pointer> get realm_dart_get_thread_id => _library._realm_dart_get_thread_idPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, realm_http_request_t, - ffi.Pointer)>> get realm_dart_http_request_callback => - _library._realm_dart_http_request_callbackPtr; ffi.Pointer> get realm_dart_init_debug_logger => _library._realm_dart_init_debug_loggerPtr; @@ -11858,12 +11498,6 @@ class _SymbolAddresses { ffi.Pointer)>> get realm_dart_persistent_handle_to_object => _library._realm_dart_persistent_handle_to_objectPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>> - get realm_dart_return_string_callback => - _library._realm_dart_return_string_callbackPtr; ffi.Pointer< ffi .NativeFunction)>> @@ -11874,58 +11508,6 @@ class _SymbolAddresses { .NativeFunction)>> get realm_dart_set_and_get_rlimit => _library._realm_dart_set_and_get_rlimitPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>> get realm_dart_sync_after_reset_handler_callback => - _library._realm_dart_sync_after_reset_handler_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)>> - get realm_dart_sync_before_reset_handler_callback => - _library._realm_dart_sync_before_reset_handler_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32, ffi.Int32)>> - get realm_dart_sync_connection_state_changed_callback => - _library._realm_dart_sync_connection_state_changed_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, realm_sync_error_t)>> - get realm_dart_sync_error_handler_callback => - _library._realm_dart_sync_error_handler_callbackPtr; - ffi.Pointer< - ffi - .NativeFunction, ffi.Int32)>> - get realm_dart_sync_on_subscription_state_changed_callback => - _library._realm_dart_sync_on_subscription_state_changed_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Uint64, ffi.Uint64, ffi.Double)>> - get realm_dart_sync_progress_callback => - _library._realm_dart_sync_progress_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>> - get realm_dart_sync_wait_for_completion_callback => - _library._realm_dart_sync_wait_for_completion_callbackPtr; - ffi.Pointer< - ffi - .NativeFunction, ffi.Int32)>> - get realm_dart_user_change_callback => - _library._realm_dart_user_change_callbackPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - get realm_dart_user_completion_callback => - _library._realm_dart_user_completion_callbackPtr; ffi.Pointer)>> get realm_dart_userdata_async_free => _library._realm_dart_userdata_async_freePtr; @@ -11935,12 +11517,6 @@ class _SymbolAddresses { ffi.Pointer, ffi.Pointer)>> get realm_dart_userdata_async_new => _library._realm_dart_userdata_async_newPtr; - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>> - get realm_dart_void_completion_callback => - _library._realm_dart_void_completion_callbackPtr; ffi.Pointer)>> get realm_release => _library._realm_releasePtr; } diff --git a/packages/realm_dart/test/realm_logger_test.dart b/packages/realm_dart/test/realm_logger_test.dart index 25ef317a9..6a41901ba 100644 --- a/packages/realm_dart/test/realm_logger_test.dart +++ b/packages/realm_dart/test/realm_logger_test.dart @@ -122,7 +122,9 @@ void main() { }); group('Category mapping', () { - final nativeCategoryNames = realmCore.getAllCategoryNames(); + // Filter out sync/app category names since this is a local-only build + final nativeCategoryNames = realmCore.getAllCategoryNames().where((name) => !name.startsWith("Realm.Sync") && !name.contains("Realm.App")).toList(); + for (final name in nativeCategoryNames) { test('$name can parse', () { expect(() => LogCategory.fromString(name), returnsNormally); diff --git a/packages/realm_dart/test/test.realm.dart b/packages/realm_dart/test/test.realm.dart index c0cc28904..f26036cec 100644 --- a/packages/realm_dart/test/test.realm.dart +++ b/packages/realm_dart/test/test.realm.dart @@ -22,10 +22,12 @@ class Car extends _Car with RealmEntity, RealmObjectBase, RealmObject { set make(String value) => RealmObjectBase.set(this, 'make', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Car freeze() => RealmObjectBase.freezeObject(this); @@ -77,10 +79,12 @@ class Person extends _Person with RealmEntity, RealmObjectBase, RealmObject { set name(String value) => RealmObjectBase.set(this, 'name', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Person freeze() => RealmObjectBase.freezeObject(this); @@ -143,13 +147,16 @@ class Dog extends _Dog with RealmEntity, RealmObjectBase, RealmObject { @override Person? get owner => RealmObjectBase.get(this, 'owner') as Person?; @override - set owner(covariant Person? value) => RealmObjectBase.set(this, 'owner', value); + set owner(covariant Person? value) => + RealmObjectBase.set(this, 'owner', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Dog freeze() => RealmObjectBase.freezeObject(this); @@ -184,7 +191,8 @@ class Dog extends _Dog with RealmEntity, RealmObjectBase, RealmObject { return const SchemaObject(ObjectType.realmObject, Dog, 'Dog', [ SchemaProperty('name', RealmPropertyType.string, primaryKey: true), SchemaProperty('age', RealmPropertyType.int, optional: true), - SchemaProperty('owner', RealmPropertyType.object, optional: true, linkTarget: 'Person'), + SchemaProperty('owner', RealmPropertyType.object, + optional: true, linkTarget: 'Person'), ]); }(); @@ -199,7 +207,8 @@ class Team extends _Team with RealmEntity, RealmObjectBase, RealmObject { Iterable scores = const [], }) { RealmObjectBase.set(this, 'name', name); - RealmObjectBase.set>(this, 'players', RealmList(players)); + RealmObjectBase.set>( + this, 'players', RealmList(players)); RealmObjectBase.set>(this, 'scores', RealmList(scores)); } @@ -211,20 +220,26 @@ class Team extends _Team with RealmEntity, RealmObjectBase, RealmObject { set name(String value) => RealmObjectBase.set(this, 'name', value); @override - RealmList get players => RealmObjectBase.get(this, 'players') as RealmList; + RealmList get players => + RealmObjectBase.get(this, 'players') as RealmList; @override - set players(covariant RealmList value) => throw RealmUnsupportedSetError(); + set players(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get scores => RealmObjectBase.get(this, 'scores') as RealmList; + RealmList get scores => + RealmObjectBase.get(this, 'scores') as RealmList; @override - set scores(covariant RealmList value) => throw RealmUnsupportedSetError(); + set scores(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Team freeze() => RealmObjectBase.freezeObject(this); @@ -258,8 +273,10 @@ class Team extends _Team with RealmEntity, RealmObjectBase, RealmObject { register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Team, 'Team', [ SchemaProperty('name', RealmPropertyType.string), - SchemaProperty('players', RealmPropertyType.object, linkTarget: 'Person', collectionType: RealmCollectionType.list), - SchemaProperty('scores', RealmPropertyType.int, collectionType: RealmCollectionType.list), + SchemaProperty('players', RealmPropertyType.object, + linkTarget: 'Person', collectionType: RealmCollectionType.list), + SchemaProperty('scores', RealmPropertyType.int, + collectionType: RealmCollectionType.list), ]); }(); @@ -295,18 +312,22 @@ class Student extends _Student with RealmEntity, RealmObjectBase, RealmObject { @override int? get yearOfBirth => RealmObjectBase.get(this, 'yearOfBirth') as int?; @override - set yearOfBirth(int? value) => RealmObjectBase.set(this, 'yearOfBirth', value); + set yearOfBirth(int? value) => + RealmObjectBase.set(this, 'yearOfBirth', value); @override School? get school => RealmObjectBase.get(this, 'school') as School?; @override - set school(covariant School? value) => RealmObjectBase.set(this, 'school', value); + set school(covariant School? value) => + RealmObjectBase.set(this, 'school', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Student freeze() => RealmObjectBase.freezeObject(this); @@ -344,7 +365,8 @@ class Student extends _Student with RealmEntity, RealmObjectBase, RealmObject { SchemaProperty('number', RealmPropertyType.int, primaryKey: true), SchemaProperty('name', RealmPropertyType.string, optional: true), SchemaProperty('yearOfBirth', RealmPropertyType.int, optional: true), - SchemaProperty('school', RealmPropertyType.object, optional: true, linkTarget: 'School'), + SchemaProperty('school', RealmPropertyType.object, + optional: true, linkTarget: 'School'), ]); }(); @@ -362,9 +384,11 @@ class School extends _School with RealmEntity, RealmObjectBase, RealmObject { }) { RealmObjectBase.set(this, 'name', name); RealmObjectBase.set(this, 'city', city); - RealmObjectBase.set>(this, 'students', RealmList(students)); + RealmObjectBase.set>( + this, 'students', RealmList(students)); RealmObjectBase.set(this, 'branchOfSchool', branchOfSchool); - RealmObjectBase.set>(this, 'branches', RealmList(branches)); + RealmObjectBase.set>( + this, 'branches', RealmList(branches)); } School._(); @@ -380,25 +404,33 @@ class School extends _School with RealmEntity, RealmObjectBase, RealmObject { set city(String? value) => RealmObjectBase.set(this, 'city', value); @override - RealmList get students => RealmObjectBase.get(this, 'students') as RealmList; + RealmList get students => + RealmObjectBase.get(this, 'students') as RealmList; @override - set students(covariant RealmList value) => throw RealmUnsupportedSetError(); + set students(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - School? get branchOfSchool => RealmObjectBase.get(this, 'branchOfSchool') as School?; + School? get branchOfSchool => + RealmObjectBase.get(this, 'branchOfSchool') as School?; @override - set branchOfSchool(covariant School? value) => RealmObjectBase.set(this, 'branchOfSchool', value); + set branchOfSchool(covariant School? value) => + RealmObjectBase.set(this, 'branchOfSchool', value); @override - RealmList get branches => RealmObjectBase.get(this, 'branches') as RealmList; + RealmList get branches => + RealmObjectBase.get(this, 'branches') as RealmList; @override - set branches(covariant RealmList value) => throw RealmUnsupportedSetError(); + set branches(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override School freeze() => RealmObjectBase.freezeObject(this); @@ -437,9 +469,12 @@ class School extends _School with RealmEntity, RealmObjectBase, RealmObject { return const SchemaObject(ObjectType.realmObject, School, 'School', [ SchemaProperty('name', RealmPropertyType.string, primaryKey: true), SchemaProperty('city', RealmPropertyType.string, optional: true), - SchemaProperty('students', RealmPropertyType.object, linkTarget: 'Student', collectionType: RealmCollectionType.list), - SchemaProperty('branchOfSchool', RealmPropertyType.object, optional: true, linkTarget: 'School'), - SchemaProperty('branches', RealmPropertyType.object, linkTarget: 'School', collectionType: RealmCollectionType.list), + SchemaProperty('students', RealmPropertyType.object, + linkTarget: 'Student', collectionType: RealmCollectionType.list), + SchemaProperty('branchOfSchool', RealmPropertyType.object, + optional: true, linkTarget: 'School'), + SchemaProperty('branches', RealmPropertyType.object, + linkTarget: 'School', collectionType: RealmCollectionType.list), ]); }(); @@ -447,32 +482,42 @@ class School extends _School with RealmEntity, RealmObjectBase, RealmObject { SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class RemappedClass extends $RemappedClass with RealmEntity, RealmObjectBase, RealmObject { +class RemappedClass extends $RemappedClass + with RealmEntity, RealmObjectBase, RealmObject { RemappedClass( String remappedProperty, { Iterable listProperty = const [], }) { RealmObjectBase.set(this, 'primitive_property', remappedProperty); - RealmObjectBase.set>(this, 'list-with-dashes', RealmList(listProperty)); + RealmObjectBase.set>( + this, 'list-with-dashes', RealmList(listProperty)); } RemappedClass._(); @override - String get remappedProperty => RealmObjectBase.get(this, 'primitive_property') as String; + String get remappedProperty => + RealmObjectBase.get(this, 'primitive_property') as String; @override - set remappedProperty(String value) => RealmObjectBase.set(this, 'primitive_property', value); + set remappedProperty(String value) => + RealmObjectBase.set(this, 'primitive_property', value); @override - RealmList get listProperty => RealmObjectBase.get(this, 'list-with-dashes') as RealmList; + RealmList get listProperty => + RealmObjectBase.get(this, 'list-with-dashes') + as RealmList; @override - set listProperty(covariant RealmList value) => throw RealmUnsupportedSetError(); + set listProperty(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override RemappedClass freeze() => RealmObjectBase.freezeObject(this); @@ -502,10 +547,14 @@ class RemappedClass extends $RemappedClass with RealmEntity, RealmObjectBase, Re static final schema = () { RealmObjectBase.registerFactory(RemappedClass._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, RemappedClass, 'myRemappedClass', [ - SchemaProperty('remappedProperty', RealmPropertyType.string, mapTo: 'primitive_property'), + return const SchemaObject( + ObjectType.realmObject, RemappedClass, 'myRemappedClass', [ + SchemaProperty('remappedProperty', RealmPropertyType.string, + mapTo: 'primitive_property'), SchemaProperty('listProperty', RealmPropertyType.object, - mapTo: 'list-with-dashes', linkTarget: 'myRemappedClass', collectionType: RealmCollectionType.list), + mapTo: 'list-with-dashes', + linkTarget: 'myRemappedClass', + collectionType: RealmCollectionType.list), ]); }(); @@ -528,10 +577,12 @@ class Task extends _Task with RealmEntity, RealmObjectBase, RealmObject { set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Task freeze() => RealmObjectBase.freezeObject(this); @@ -560,7 +611,8 @@ class Task extends _Task with RealmEntity, RealmObjectBase, RealmObject { RealmObjectBase.registerFactory(Task._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Task, 'Task', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), ]); }(); @@ -585,15 +637,19 @@ class Product extends _Product with RealmEntity, RealmObjectBase, RealmObject { set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - String get name => RealmObjectBase.get(this, 'stringQueryField') as String; + String get name => + RealmObjectBase.get(this, 'stringQueryField') as String; @override - set name(String value) => RealmObjectBase.set(this, 'stringQueryField', value); + set name(String value) => + RealmObjectBase.set(this, 'stringQueryField', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Product freeze() => RealmObjectBase.freezeObject(this); @@ -625,8 +681,10 @@ class Product extends _Product with RealmEntity, RealmObjectBase, RealmObject { RealmObjectBase.registerFactory(Product._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Product, 'Product', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), - SchemaProperty('name', RealmPropertyType.string, mapTo: 'stringQueryField'), + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), + SchemaProperty('name', RealmPropertyType.string, + mapTo: 'stringQueryField'), ]); }(); @@ -634,7 +692,8 @@ class Product extends _Product with RealmEntity, RealmObjectBase, RealmObject { SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class Schedule extends _Schedule with RealmEntity, RealmObjectBase, RealmObject { +class Schedule extends _Schedule + with RealmEntity, RealmObjectBase, RealmObject { Schedule( ObjectId id, { Iterable tasks = const [], @@ -651,15 +710,19 @@ class Schedule extends _Schedule with RealmEntity, RealmObjectBase, RealmObject set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - RealmList get tasks => RealmObjectBase.get(this, 'tasks') as RealmList; + RealmList get tasks => + RealmObjectBase.get(this, 'tasks') as RealmList; @override - set tasks(covariant RealmList value) => throw RealmUnsupportedSetError(); + set tasks(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Schedule freeze() => RealmObjectBase.freezeObject(this); @@ -690,8 +753,10 @@ class Schedule extends _Schedule with RealmEntity, RealmObjectBase, RealmObject RealmObjectBase.registerFactory(Schedule._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Schedule, 'Schedule', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), - SchemaProperty('tasks', RealmPropertyType.object, linkTarget: 'Task', collectionType: RealmCollectionType.list), + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), + SchemaProperty('tasks', RealmPropertyType.object, + linkTarget: 'Task', collectionType: RealmCollectionType.list), ]); }(); @@ -711,20 +776,26 @@ class Foo extends _Foo with RealmEntity, RealmObjectBase, RealmObject { Foo._(); @override - Uint8List get requiredBinaryProp => RealmObjectBase.get(this, 'requiredBinaryProp') as Uint8List; + Uint8List get requiredBinaryProp => + RealmObjectBase.get(this, 'requiredBinaryProp') as Uint8List; @override - set requiredBinaryProp(Uint8List value) => RealmObjectBase.set(this, 'requiredBinaryProp', value); + set requiredBinaryProp(Uint8List value) => + RealmObjectBase.set(this, 'requiredBinaryProp', value); @override - Uint8List? get nullableBinaryProp => RealmObjectBase.get(this, 'nullableBinaryProp') as Uint8List?; + Uint8List? get nullableBinaryProp => + RealmObjectBase.get(this, 'nullableBinaryProp') as Uint8List?; @override - set nullableBinaryProp(Uint8List? value) => RealmObjectBase.set(this, 'nullableBinaryProp', value); + set nullableBinaryProp(Uint8List? value) => + RealmObjectBase.set(this, 'nullableBinaryProp', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Foo freeze() => RealmObjectBase.freezeObject(this); @@ -756,7 +827,8 @@ class Foo extends _Foo with RealmEntity, RealmObjectBase, RealmObject { register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Foo, 'Foo', [ SchemaProperty('requiredBinaryProp', RealmPropertyType.binary), - SchemaProperty('nullableBinaryProp', RealmPropertyType.binary, optional: true), + SchemaProperty('nullableBinaryProp', RealmPropertyType.binary, + optional: true), ]); }(); @@ -764,7 +836,8 @@ class Foo extends _Foo with RealmEntity, RealmObjectBase, RealmObject { SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class AllTypes extends _AllTypes with RealmEntity, RealmObjectBase, RealmObject { +class AllTypes extends _AllTypes + with RealmEntity, RealmObjectBase, RealmObject { AllTypes( String stringProp, bool boolProp, @@ -810,9 +883,11 @@ class AllTypes extends _AllTypes with RealmEntity, RealmObjectBase, RealmObject AllTypes._(); @override - String get stringProp => RealmObjectBase.get(this, 'stringProp') as String; + String get stringProp => + RealmObjectBase.get(this, 'stringProp') as String; @override - set stringProp(String value) => RealmObjectBase.set(this, 'stringProp', value); + set stringProp(String value) => + RealmObjectBase.set(this, 'stringProp', value); @override bool get boolProp => RealmObjectBase.get(this, 'boolProp') as bool; @@ -820,19 +895,24 @@ class AllTypes extends _AllTypes with RealmEntity, RealmObjectBase, RealmObject set boolProp(bool value) => RealmObjectBase.set(this, 'boolProp', value); @override - DateTime get dateProp => RealmObjectBase.get(this, 'dateProp') as DateTime; + DateTime get dateProp => + RealmObjectBase.get(this, 'dateProp') as DateTime; @override set dateProp(DateTime value) => RealmObjectBase.set(this, 'dateProp', value); @override - double get doubleProp => RealmObjectBase.get(this, 'doubleProp') as double; + double get doubleProp => + RealmObjectBase.get(this, 'doubleProp') as double; @override - set doubleProp(double value) => RealmObjectBase.set(this, 'doubleProp', value); + set doubleProp(double value) => + RealmObjectBase.set(this, 'doubleProp', value); @override - ObjectId get objectIdProp => RealmObjectBase.get(this, 'objectIdProp') as ObjectId; + ObjectId get objectIdProp => + RealmObjectBase.get(this, 'objectIdProp') as ObjectId; @override - set objectIdProp(ObjectId value) => RealmObjectBase.set(this, 'objectIdProp', value); + set objectIdProp(ObjectId value) => + RealmObjectBase.set(this, 'objectIdProp', value); @override Uuid get uuidProp => RealmObjectBase.get(this, 'uuidProp') as Uuid; @@ -845,70 +925,97 @@ class AllTypes extends _AllTypes with RealmEntity, RealmObjectBase, RealmObject set intProp(int value) => RealmObjectBase.set(this, 'intProp', value); @override - Decimal128 get decimalProp => RealmObjectBase.get(this, 'decimalProp') as Decimal128; + Decimal128 get decimalProp => + RealmObjectBase.get(this, 'decimalProp') as Decimal128; @override - set decimalProp(Decimal128 value) => RealmObjectBase.set(this, 'decimalProp', value); + set decimalProp(Decimal128 value) => + RealmObjectBase.set(this, 'decimalProp', value); @override - Uint8List get binaryProp => RealmObjectBase.get(this, 'binaryProp') as Uint8List; + Uint8List get binaryProp => + RealmObjectBase.get(this, 'binaryProp') as Uint8List; @override - set binaryProp(Uint8List value) => RealmObjectBase.set(this, 'binaryProp', value); + set binaryProp(Uint8List value) => + RealmObjectBase.set(this, 'binaryProp', value); @override - String? get nullableStringProp => RealmObjectBase.get(this, 'nullableStringProp') as String?; + String? get nullableStringProp => + RealmObjectBase.get(this, 'nullableStringProp') as String?; @override - set nullableStringProp(String? value) => RealmObjectBase.set(this, 'nullableStringProp', value); + set nullableStringProp(String? value) => + RealmObjectBase.set(this, 'nullableStringProp', value); @override - bool? get nullableBoolProp => RealmObjectBase.get(this, 'nullableBoolProp') as bool?; + bool? get nullableBoolProp => + RealmObjectBase.get(this, 'nullableBoolProp') as bool?; @override - set nullableBoolProp(bool? value) => RealmObjectBase.set(this, 'nullableBoolProp', value); + set nullableBoolProp(bool? value) => + RealmObjectBase.set(this, 'nullableBoolProp', value); @override - DateTime? get nullableDateProp => RealmObjectBase.get(this, 'nullableDateProp') as DateTime?; + DateTime? get nullableDateProp => + RealmObjectBase.get(this, 'nullableDateProp') as DateTime?; @override - set nullableDateProp(DateTime? value) => RealmObjectBase.set(this, 'nullableDateProp', value); + set nullableDateProp(DateTime? value) => + RealmObjectBase.set(this, 'nullableDateProp', value); @override - double? get nullableDoubleProp => RealmObjectBase.get(this, 'nullableDoubleProp') as double?; + double? get nullableDoubleProp => + RealmObjectBase.get(this, 'nullableDoubleProp') as double?; @override - set nullableDoubleProp(double? value) => RealmObjectBase.set(this, 'nullableDoubleProp', value); + set nullableDoubleProp(double? value) => + RealmObjectBase.set(this, 'nullableDoubleProp', value); @override - ObjectId? get nullableObjectIdProp => RealmObjectBase.get(this, 'nullableObjectIdProp') as ObjectId?; + ObjectId? get nullableObjectIdProp => + RealmObjectBase.get(this, 'nullableObjectIdProp') as ObjectId?; @override - set nullableObjectIdProp(ObjectId? value) => RealmObjectBase.set(this, 'nullableObjectIdProp', value); + set nullableObjectIdProp(ObjectId? value) => + RealmObjectBase.set(this, 'nullableObjectIdProp', value); @override - Uuid? get nullableUuidProp => RealmObjectBase.get(this, 'nullableUuidProp') as Uuid?; + Uuid? get nullableUuidProp => + RealmObjectBase.get(this, 'nullableUuidProp') as Uuid?; @override - set nullableUuidProp(Uuid? value) => RealmObjectBase.set(this, 'nullableUuidProp', value); + set nullableUuidProp(Uuid? value) => + RealmObjectBase.set(this, 'nullableUuidProp', value); @override - int? get nullableIntProp => RealmObjectBase.get(this, 'nullableIntProp') as int?; + int? get nullableIntProp => + RealmObjectBase.get(this, 'nullableIntProp') as int?; @override - set nullableIntProp(int? value) => RealmObjectBase.set(this, 'nullableIntProp', value); + set nullableIntProp(int? value) => + RealmObjectBase.set(this, 'nullableIntProp', value); @override - Decimal128? get nullableDecimalProp => RealmObjectBase.get(this, 'nullableDecimalProp') as Decimal128?; + Decimal128? get nullableDecimalProp => + RealmObjectBase.get(this, 'nullableDecimalProp') + as Decimal128?; @override - set nullableDecimalProp(Decimal128? value) => RealmObjectBase.set(this, 'nullableDecimalProp', value); + set nullableDecimalProp(Decimal128? value) => + RealmObjectBase.set(this, 'nullableDecimalProp', value); @override - Uint8List? get nullableBinaryProp => RealmObjectBase.get(this, 'nullableBinaryProp') as Uint8List?; + Uint8List? get nullableBinaryProp => + RealmObjectBase.get(this, 'nullableBinaryProp') as Uint8List?; @override - set nullableBinaryProp(Uint8List? value) => RealmObjectBase.set(this, 'nullableBinaryProp', value); + set nullableBinaryProp(Uint8List? value) => + RealmObjectBase.set(this, 'nullableBinaryProp', value); @override - RealmValue get realmValueProp => RealmObjectBase.get(this, 'realmValueProp') as RealmValue; + RealmValue get realmValueProp => + RealmObjectBase.get(this, 'realmValueProp') as RealmValue; @override - set realmValueProp(RealmValue value) => RealmObjectBase.set(this, 'realmValueProp', value); + set realmValueProp(RealmValue value) => + RealmObjectBase.set(this, 'realmValueProp', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override AllTypes freeze() => RealmObjectBase.freezeObject(this); @@ -990,15 +1097,23 @@ class AllTypes extends _AllTypes with RealmEntity, RealmObjectBase, RealmObject SchemaProperty('intProp', RealmPropertyType.int), SchemaProperty('decimalProp', RealmPropertyType.decimal128), SchemaProperty('binaryProp', RealmPropertyType.binary), - SchemaProperty('nullableStringProp', RealmPropertyType.string, optional: true), - SchemaProperty('nullableBoolProp', RealmPropertyType.bool, optional: true), - SchemaProperty('nullableDateProp', RealmPropertyType.timestamp, optional: true), - SchemaProperty('nullableDoubleProp', RealmPropertyType.double, optional: true), - SchemaProperty('nullableObjectIdProp', RealmPropertyType.objectid, optional: true), - SchemaProperty('nullableUuidProp', RealmPropertyType.uuid, optional: true), + SchemaProperty('nullableStringProp', RealmPropertyType.string, + optional: true), + SchemaProperty('nullableBoolProp', RealmPropertyType.bool, + optional: true), + SchemaProperty('nullableDateProp', RealmPropertyType.timestamp, + optional: true), + SchemaProperty('nullableDoubleProp', RealmPropertyType.double, + optional: true), + SchemaProperty('nullableObjectIdProp', RealmPropertyType.objectid, + optional: true), + SchemaProperty('nullableUuidProp', RealmPropertyType.uuid, + optional: true), SchemaProperty('nullableIntProp', RealmPropertyType.int, optional: true), - SchemaProperty('nullableDecimalProp', RealmPropertyType.decimal128, optional: true), - SchemaProperty('nullableBinaryProp', RealmPropertyType.binary, optional: true), + SchemaProperty('nullableDecimalProp', RealmPropertyType.decimal128, + optional: true), + SchemaProperty('nullableBinaryProp', RealmPropertyType.binary, + optional: true), SchemaProperty('realmValueProp', RealmPropertyType.mixed, optional: true), ]); }(); @@ -1007,7 +1122,8 @@ class AllTypes extends _AllTypes with RealmEntity, RealmObjectBase, RealmObject SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class LinksClass extends _LinksClass with RealmEntity, RealmObjectBase, RealmObject { +class LinksClass extends _LinksClass + with RealmEntity, RealmObjectBase, RealmObject { LinksClass( Uuid id, { LinksClass? link, @@ -1017,9 +1133,12 @@ class LinksClass extends _LinksClass with RealmEntity, RealmObjectBase, RealmObj }) { RealmObjectBase.set(this, 'id', id); RealmObjectBase.set(this, 'link', link); - RealmObjectBase.set>(this, 'list', RealmList(list)); - RealmObjectBase.set>(this, 'linksSet', RealmSet(linksSet)); - RealmObjectBase.set>(this, 'map', RealmMap(map)); + RealmObjectBase.set>( + this, 'list', RealmList(list)); + RealmObjectBase.set>( + this, 'linksSet', RealmSet(linksSet)); + RealmObjectBase.set>( + this, 'map', RealmMap(map)); } LinksClass._(); @@ -1030,30 +1149,40 @@ class LinksClass extends _LinksClass with RealmEntity, RealmObjectBase, RealmObj set id(Uuid value) => RealmObjectBase.set(this, 'id', value); @override - LinksClass? get link => RealmObjectBase.get(this, 'link') as LinksClass?; + LinksClass? get link => + RealmObjectBase.get(this, 'link') as LinksClass?; @override - set link(covariant LinksClass? value) => RealmObjectBase.set(this, 'link', value); + set link(covariant LinksClass? value) => + RealmObjectBase.set(this, 'link', value); @override - RealmList get list => RealmObjectBase.get(this, 'list') as RealmList; + RealmList get list => + RealmObjectBase.get(this, 'list') as RealmList; @override - set list(covariant RealmList value) => throw RealmUnsupportedSetError(); + set list(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmSet get linksSet => RealmObjectBase.get(this, 'linksSet') as RealmSet; + RealmSet get linksSet => + RealmObjectBase.get(this, 'linksSet') as RealmSet; @override - set linksSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set linksSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmMap get map => RealmObjectBase.get(this, 'map') as RealmMap; + RealmMap get map => + RealmObjectBase.get(this, 'map') as RealmMap; @override - set map(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set map(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override LinksClass freeze() => RealmObjectBase.freezeObject(this); @@ -1089,12 +1218,19 @@ class LinksClass extends _LinksClass with RealmEntity, RealmObjectBase, RealmObj static final schema = () { RealmObjectBase.registerFactory(LinksClass._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, LinksClass, 'LinksClass', [ + return const SchemaObject( + ObjectType.realmObject, LinksClass, 'LinksClass', [ SchemaProperty('id', RealmPropertyType.uuid, primaryKey: true), - SchemaProperty('link', RealmPropertyType.object, optional: true, linkTarget: 'LinksClass'), - SchemaProperty('list', RealmPropertyType.object, linkTarget: 'LinksClass', collectionType: RealmCollectionType.list), - SchemaProperty('linksSet', RealmPropertyType.object, linkTarget: 'LinksClass', collectionType: RealmCollectionType.set), - SchemaProperty('map', RealmPropertyType.object, optional: true, linkTarget: 'LinksClass', collectionType: RealmCollectionType.map), + SchemaProperty('link', RealmPropertyType.object, + optional: true, linkTarget: 'LinksClass'), + SchemaProperty('list', RealmPropertyType.object, + linkTarget: 'LinksClass', collectionType: RealmCollectionType.list), + SchemaProperty('linksSet', RealmPropertyType.object, + linkTarget: 'LinksClass', collectionType: RealmCollectionType.set), + SchemaProperty('map', RealmPropertyType.object, + optional: true, + linkTarget: 'LinksClass', + collectionType: RealmCollectionType.map), ]); }(); @@ -1102,7 +1238,8 @@ class LinksClass extends _LinksClass with RealmEntity, RealmObjectBase, RealmObj SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class AllCollections extends _AllCollections with RealmEntity, RealmObjectBase, RealmObject { +class AllCollections extends _AllCollections + with RealmEntity, RealmObjectBase, RealmObject { AllCollections({ Iterable stringList = const [], Iterable boolList = const [], @@ -1153,303 +1290,465 @@ class AllCollections extends _AllCollections with RealmEntity, RealmObjectBase, Map nullableIntMap = const {}, Map nullableDecimalMap = const {}, }) { - RealmObjectBase.set>(this, 'stringList', RealmList(stringList)); - RealmObjectBase.set>(this, 'boolList', RealmList(boolList)); - RealmObjectBase.set>(this, 'dateList', RealmList(dateList)); - RealmObjectBase.set>(this, 'doubleList', RealmList(doubleList)); - RealmObjectBase.set>(this, 'objectIdList', RealmList(objectIdList)); - RealmObjectBase.set>(this, 'uuidList', RealmList(uuidList)); - RealmObjectBase.set>(this, 'intList', RealmList(intList)); - RealmObjectBase.set>(this, 'decimalList', RealmList(decimalList)); - RealmObjectBase.set>(this, 'nullableStringList', RealmList(nullableStringList)); - RealmObjectBase.set>(this, 'nullableBoolList', RealmList(nullableBoolList)); - RealmObjectBase.set>(this, 'nullableDateList', RealmList(nullableDateList)); - RealmObjectBase.set>(this, 'nullableDoubleList', RealmList(nullableDoubleList)); - RealmObjectBase.set>(this, 'nullableObjectIdList', RealmList(nullableObjectIdList)); - RealmObjectBase.set>(this, 'nullableUuidList', RealmList(nullableUuidList)); - RealmObjectBase.set>(this, 'nullableIntList', RealmList(nullableIntList)); - RealmObjectBase.set>(this, 'nullableDecimalList', RealmList(nullableDecimalList)); - RealmObjectBase.set>(this, 'stringSet', RealmSet(stringSet)); - RealmObjectBase.set>(this, 'boolSet', RealmSet(boolSet)); - RealmObjectBase.set>(this, 'dateSet', RealmSet(dateSet)); - RealmObjectBase.set>(this, 'doubleSet', RealmSet(doubleSet)); - RealmObjectBase.set>(this, 'objectIdSet', RealmSet(objectIdSet)); - RealmObjectBase.set>(this, 'uuidSet', RealmSet(uuidSet)); + RealmObjectBase.set>( + this, 'stringList', RealmList(stringList)); + RealmObjectBase.set>( + this, 'boolList', RealmList(boolList)); + RealmObjectBase.set>( + this, 'dateList', RealmList(dateList)); + RealmObjectBase.set>( + this, 'doubleList', RealmList(doubleList)); + RealmObjectBase.set>( + this, 'objectIdList', RealmList(objectIdList)); + RealmObjectBase.set>( + this, 'uuidList', RealmList(uuidList)); + RealmObjectBase.set>( + this, 'intList', RealmList(intList)); + RealmObjectBase.set>( + this, 'decimalList', RealmList(decimalList)); + RealmObjectBase.set>( + this, 'nullableStringList', RealmList(nullableStringList)); + RealmObjectBase.set>( + this, 'nullableBoolList', RealmList(nullableBoolList)); + RealmObjectBase.set>( + this, 'nullableDateList', RealmList(nullableDateList)); + RealmObjectBase.set>( + this, 'nullableDoubleList', RealmList(nullableDoubleList)); + RealmObjectBase.set>(this, 'nullableObjectIdList', + RealmList(nullableObjectIdList)); + RealmObjectBase.set>( + this, 'nullableUuidList', RealmList(nullableUuidList)); + RealmObjectBase.set>( + this, 'nullableIntList', RealmList(nullableIntList)); + RealmObjectBase.set>(this, 'nullableDecimalList', + RealmList(nullableDecimalList)); + RealmObjectBase.set>( + this, 'stringSet', RealmSet(stringSet)); + RealmObjectBase.set>( + this, 'boolSet', RealmSet(boolSet)); + RealmObjectBase.set>( + this, 'dateSet', RealmSet(dateSet)); + RealmObjectBase.set>( + this, 'doubleSet', RealmSet(doubleSet)); + RealmObjectBase.set>( + this, 'objectIdSet', RealmSet(objectIdSet)); + RealmObjectBase.set>( + this, 'uuidSet', RealmSet(uuidSet)); RealmObjectBase.set>(this, 'intSet', RealmSet(intSet)); - RealmObjectBase.set>(this, 'decimalSet', RealmSet(decimalSet)); - RealmObjectBase.set>(this, 'nullableStringSet', RealmSet(nullableStringSet)); - RealmObjectBase.set>(this, 'nullableBoolSet', RealmSet(nullableBoolSet)); - RealmObjectBase.set>(this, 'nullableDateSet', RealmSet(nullableDateSet)); - RealmObjectBase.set>(this, 'nullableDoubleSet', RealmSet(nullableDoubleSet)); - RealmObjectBase.set>(this, 'nullableObjectIdSet', RealmSet(nullableObjectIdSet)); - RealmObjectBase.set>(this, 'nullableUuidSet', RealmSet(nullableUuidSet)); - RealmObjectBase.set>(this, 'nullableIntSet', RealmSet(nullableIntSet)); - RealmObjectBase.set>(this, 'nullableDecimalSet', RealmSet(nullableDecimalSet)); - RealmObjectBase.set>(this, 'stringMap', RealmMap(stringMap)); - RealmObjectBase.set>(this, 'boolMap', RealmMap(boolMap)); - RealmObjectBase.set>(this, 'dateMap', RealmMap(dateMap)); - RealmObjectBase.set>(this, 'doubleMap', RealmMap(doubleMap)); - RealmObjectBase.set>(this, 'objectIdMap', RealmMap(objectIdMap)); - RealmObjectBase.set>(this, 'uuidMap', RealmMap(uuidMap)); + RealmObjectBase.set>( + this, 'decimalSet', RealmSet(decimalSet)); + RealmObjectBase.set>( + this, 'nullableStringSet', RealmSet(nullableStringSet)); + RealmObjectBase.set>( + this, 'nullableBoolSet', RealmSet(nullableBoolSet)); + RealmObjectBase.set>( + this, 'nullableDateSet', RealmSet(nullableDateSet)); + RealmObjectBase.set>( + this, 'nullableDoubleSet', RealmSet(nullableDoubleSet)); + RealmObjectBase.set>( + this, 'nullableObjectIdSet', RealmSet(nullableObjectIdSet)); + RealmObjectBase.set>( + this, 'nullableUuidSet', RealmSet(nullableUuidSet)); + RealmObjectBase.set>( + this, 'nullableIntSet', RealmSet(nullableIntSet)); + RealmObjectBase.set>( + this, 'nullableDecimalSet', RealmSet(nullableDecimalSet)); + RealmObjectBase.set>( + this, 'stringMap', RealmMap(stringMap)); + RealmObjectBase.set>( + this, 'boolMap', RealmMap(boolMap)); + RealmObjectBase.set>( + this, 'dateMap', RealmMap(dateMap)); + RealmObjectBase.set>( + this, 'doubleMap', RealmMap(doubleMap)); + RealmObjectBase.set>( + this, 'objectIdMap', RealmMap(objectIdMap)); + RealmObjectBase.set>( + this, 'uuidMap', RealmMap(uuidMap)); RealmObjectBase.set>(this, 'intMap', RealmMap(intMap)); - RealmObjectBase.set>(this, 'decimalMap', RealmMap(decimalMap)); - RealmObjectBase.set>(this, 'nullableStringMap', RealmMap(nullableStringMap)); - RealmObjectBase.set>(this, 'nullableBoolMap', RealmMap(nullableBoolMap)); - RealmObjectBase.set>(this, 'nullableDateMap', RealmMap(nullableDateMap)); - RealmObjectBase.set>(this, 'nullableDoubleMap', RealmMap(nullableDoubleMap)); - RealmObjectBase.set>(this, 'nullableObjectIdMap', RealmMap(nullableObjectIdMap)); - RealmObjectBase.set>(this, 'nullableUuidMap', RealmMap(nullableUuidMap)); - RealmObjectBase.set>(this, 'nullableIntMap', RealmMap(nullableIntMap)); - RealmObjectBase.set>(this, 'nullableDecimalMap', RealmMap(nullableDecimalMap)); + RealmObjectBase.set>( + this, 'decimalMap', RealmMap(decimalMap)); + RealmObjectBase.set>( + this, 'nullableStringMap', RealmMap(nullableStringMap)); + RealmObjectBase.set>( + this, 'nullableBoolMap', RealmMap(nullableBoolMap)); + RealmObjectBase.set>( + this, 'nullableDateMap', RealmMap(nullableDateMap)); + RealmObjectBase.set>( + this, 'nullableDoubleMap', RealmMap(nullableDoubleMap)); + RealmObjectBase.set>( + this, 'nullableObjectIdMap', RealmMap(nullableObjectIdMap)); + RealmObjectBase.set>( + this, 'nullableUuidMap', RealmMap(nullableUuidMap)); + RealmObjectBase.set>( + this, 'nullableIntMap', RealmMap(nullableIntMap)); + RealmObjectBase.set>( + this, 'nullableDecimalMap', RealmMap(nullableDecimalMap)); } AllCollections._(); @override - RealmList get stringList => RealmObjectBase.get(this, 'stringList') as RealmList; + RealmList get stringList => + RealmObjectBase.get(this, 'stringList') as RealmList; @override - set stringList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set stringList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get boolList => RealmObjectBase.get(this, 'boolList') as RealmList; + RealmList get boolList => + RealmObjectBase.get(this, 'boolList') as RealmList; @override - set boolList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set boolList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get dateList => RealmObjectBase.get(this, 'dateList') as RealmList; + RealmList get dateList => + RealmObjectBase.get(this, 'dateList') as RealmList; @override - set dateList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set dateList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get doubleList => RealmObjectBase.get(this, 'doubleList') as RealmList; + RealmList get doubleList => + RealmObjectBase.get(this, 'doubleList') as RealmList; @override - set doubleList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set doubleList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get objectIdList => RealmObjectBase.get(this, 'objectIdList') as RealmList; + RealmList get objectIdList => + RealmObjectBase.get(this, 'objectIdList') + as RealmList; @override - set objectIdList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set objectIdList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get uuidList => RealmObjectBase.get(this, 'uuidList') as RealmList; + RealmList get uuidList => + RealmObjectBase.get(this, 'uuidList') as RealmList; @override - set uuidList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set uuidList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get intList => RealmObjectBase.get(this, 'intList') as RealmList; + RealmList get intList => + RealmObjectBase.get(this, 'intList') as RealmList; @override - set intList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set intList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get decimalList => RealmObjectBase.get(this, 'decimalList') as RealmList; + RealmList get decimalList => + RealmObjectBase.get(this, 'decimalList') + as RealmList; @override - set decimalList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set decimalList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableStringList => RealmObjectBase.get(this, 'nullableStringList') as RealmList; + RealmList get nullableStringList => + RealmObjectBase.get(this, 'nullableStringList') + as RealmList; @override - set nullableStringList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableStringList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableBoolList => RealmObjectBase.get(this, 'nullableBoolList') as RealmList; + RealmList get nullableBoolList => + RealmObjectBase.get(this, 'nullableBoolList') as RealmList; @override - set nullableBoolList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableBoolList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableDateList => RealmObjectBase.get(this, 'nullableDateList') as RealmList; + RealmList get nullableDateList => + RealmObjectBase.get(this, 'nullableDateList') + as RealmList; @override - set nullableDateList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableDateList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableDoubleList => RealmObjectBase.get(this, 'nullableDoubleList') as RealmList; + RealmList get nullableDoubleList => + RealmObjectBase.get(this, 'nullableDoubleList') + as RealmList; @override - set nullableDoubleList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableDoubleList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableObjectIdList => RealmObjectBase.get(this, 'nullableObjectIdList') as RealmList; + RealmList get nullableObjectIdList => + RealmObjectBase.get(this, 'nullableObjectIdList') + as RealmList; @override - set nullableObjectIdList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableObjectIdList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableUuidList => RealmObjectBase.get(this, 'nullableUuidList') as RealmList; + RealmList get nullableUuidList => + RealmObjectBase.get(this, 'nullableUuidList') as RealmList; @override - set nullableUuidList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableUuidList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableIntList => RealmObjectBase.get(this, 'nullableIntList') as RealmList; + RealmList get nullableIntList => + RealmObjectBase.get(this, 'nullableIntList') as RealmList; @override - set nullableIntList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableIntList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get nullableDecimalList => RealmObjectBase.get(this, 'nullableDecimalList') as RealmList; + RealmList get nullableDecimalList => + RealmObjectBase.get(this, 'nullableDecimalList') + as RealmList; @override - set nullableDecimalList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set nullableDecimalList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmSet get stringSet => RealmObjectBase.get(this, 'stringSet') as RealmSet; + RealmSet get stringSet => + RealmObjectBase.get(this, 'stringSet') as RealmSet; @override - set stringSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set stringSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get boolSet => RealmObjectBase.get(this, 'boolSet') as RealmSet; + RealmSet get boolSet => + RealmObjectBase.get(this, 'boolSet') as RealmSet; @override - set boolSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set boolSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get dateSet => RealmObjectBase.get(this, 'dateSet') as RealmSet; + RealmSet get dateSet => + RealmObjectBase.get(this, 'dateSet') as RealmSet; @override - set dateSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set dateSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get doubleSet => RealmObjectBase.get(this, 'doubleSet') as RealmSet; + RealmSet get doubleSet => + RealmObjectBase.get(this, 'doubleSet') as RealmSet; @override - set doubleSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set doubleSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get objectIdSet => RealmObjectBase.get(this, 'objectIdSet') as RealmSet; + RealmSet get objectIdSet => + RealmObjectBase.get(this, 'objectIdSet') as RealmSet; @override - set objectIdSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set objectIdSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get uuidSet => RealmObjectBase.get(this, 'uuidSet') as RealmSet; + RealmSet get uuidSet => + RealmObjectBase.get(this, 'uuidSet') as RealmSet; @override - set uuidSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set uuidSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get intSet => RealmObjectBase.get(this, 'intSet') as RealmSet; + RealmSet get intSet => + RealmObjectBase.get(this, 'intSet') as RealmSet; @override set intSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); @override - RealmSet get decimalSet => RealmObjectBase.get(this, 'decimalSet') as RealmSet; + RealmSet get decimalSet => + RealmObjectBase.get(this, 'decimalSet') + as RealmSet; @override - set decimalSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set decimalSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableStringSet => RealmObjectBase.get(this, 'nullableStringSet') as RealmSet; + RealmSet get nullableStringSet => + RealmObjectBase.get(this, 'nullableStringSet') + as RealmSet; @override - set nullableStringSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableStringSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableBoolSet => RealmObjectBase.get(this, 'nullableBoolSet') as RealmSet; + RealmSet get nullableBoolSet => + RealmObjectBase.get(this, 'nullableBoolSet') as RealmSet; @override - set nullableBoolSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableBoolSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableDateSet => RealmObjectBase.get(this, 'nullableDateSet') as RealmSet; + RealmSet get nullableDateSet => + RealmObjectBase.get(this, 'nullableDateSet') + as RealmSet; @override - set nullableDateSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableDateSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableDoubleSet => RealmObjectBase.get(this, 'nullableDoubleSet') as RealmSet; + RealmSet get nullableDoubleSet => + RealmObjectBase.get(this, 'nullableDoubleSet') + as RealmSet; @override - set nullableDoubleSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableDoubleSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableObjectIdSet => RealmObjectBase.get(this, 'nullableObjectIdSet') as RealmSet; + RealmSet get nullableObjectIdSet => + RealmObjectBase.get(this, 'nullableObjectIdSet') + as RealmSet; @override - set nullableObjectIdSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableObjectIdSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableUuidSet => RealmObjectBase.get(this, 'nullableUuidSet') as RealmSet; + RealmSet get nullableUuidSet => + RealmObjectBase.get(this, 'nullableUuidSet') as RealmSet; @override - set nullableUuidSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableUuidSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableIntSet => RealmObjectBase.get(this, 'nullableIntSet') as RealmSet; + RealmSet get nullableIntSet => + RealmObjectBase.get(this, 'nullableIntSet') as RealmSet; @override - set nullableIntSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableIntSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmSet get nullableDecimalSet => RealmObjectBase.get(this, 'nullableDecimalSet') as RealmSet; + RealmSet get nullableDecimalSet => + RealmObjectBase.get(this, 'nullableDecimalSet') + as RealmSet; @override - set nullableDecimalSet(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set nullableDecimalSet(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - RealmMap get stringMap => RealmObjectBase.get(this, 'stringMap') as RealmMap; + RealmMap get stringMap => + RealmObjectBase.get(this, 'stringMap') as RealmMap; @override - set stringMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set stringMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get boolMap => RealmObjectBase.get(this, 'boolMap') as RealmMap; + RealmMap get boolMap => + RealmObjectBase.get(this, 'boolMap') as RealmMap; @override - set boolMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set boolMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get dateMap => RealmObjectBase.get(this, 'dateMap') as RealmMap; + RealmMap get dateMap => + RealmObjectBase.get(this, 'dateMap') as RealmMap; @override - set dateMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set dateMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get doubleMap => RealmObjectBase.get(this, 'doubleMap') as RealmMap; + RealmMap get doubleMap => + RealmObjectBase.get(this, 'doubleMap') as RealmMap; @override - set doubleMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set doubleMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get objectIdMap => RealmObjectBase.get(this, 'objectIdMap') as RealmMap; + RealmMap get objectIdMap => + RealmObjectBase.get(this, 'objectIdMap') as RealmMap; @override - set objectIdMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set objectIdMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get uuidMap => RealmObjectBase.get(this, 'uuidMap') as RealmMap; + RealmMap get uuidMap => + RealmObjectBase.get(this, 'uuidMap') as RealmMap; @override - set uuidMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set uuidMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get intMap => RealmObjectBase.get(this, 'intMap') as RealmMap; + RealmMap get intMap => + RealmObjectBase.get(this, 'intMap') as RealmMap; @override set intMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); @override - RealmMap get decimalMap => RealmObjectBase.get(this, 'decimalMap') as RealmMap; + RealmMap get decimalMap => + RealmObjectBase.get(this, 'decimalMap') + as RealmMap; @override - set decimalMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set decimalMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableStringMap => RealmObjectBase.get(this, 'nullableStringMap') as RealmMap; + RealmMap get nullableStringMap => + RealmObjectBase.get(this, 'nullableStringMap') + as RealmMap; @override - set nullableStringMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableStringMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableBoolMap => RealmObjectBase.get(this, 'nullableBoolMap') as RealmMap; + RealmMap get nullableBoolMap => + RealmObjectBase.get(this, 'nullableBoolMap') as RealmMap; @override - set nullableBoolMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableBoolMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableDateMap => RealmObjectBase.get(this, 'nullableDateMap') as RealmMap; + RealmMap get nullableDateMap => + RealmObjectBase.get(this, 'nullableDateMap') + as RealmMap; @override - set nullableDateMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableDateMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableDoubleMap => RealmObjectBase.get(this, 'nullableDoubleMap') as RealmMap; + RealmMap get nullableDoubleMap => + RealmObjectBase.get(this, 'nullableDoubleMap') + as RealmMap; @override - set nullableDoubleMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableDoubleMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableObjectIdMap => RealmObjectBase.get(this, 'nullableObjectIdMap') as RealmMap; + RealmMap get nullableObjectIdMap => + RealmObjectBase.get(this, 'nullableObjectIdMap') + as RealmMap; @override - set nullableObjectIdMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableObjectIdMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableUuidMap => RealmObjectBase.get(this, 'nullableUuidMap') as RealmMap; + RealmMap get nullableUuidMap => + RealmObjectBase.get(this, 'nullableUuidMap') as RealmMap; @override - set nullableUuidMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableUuidMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableIntMap => RealmObjectBase.get(this, 'nullableIntMap') as RealmMap; + RealmMap get nullableIntMap => + RealmObjectBase.get(this, 'nullableIntMap') as RealmMap; @override - set nullableIntMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableIntMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmMap get nullableDecimalMap => RealmObjectBase.get(this, 'nullableDecimalMap') as RealmMap; + RealmMap get nullableDecimalMap => + RealmObjectBase.get(this, 'nullableDecimalMap') + as RealmMap; @override - set nullableDecimalMap(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set nullableDecimalMap(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override AllCollections freeze() => RealmObjectBase.freezeObject(this); @@ -1565,55 +1864,104 @@ class AllCollections extends _AllCollections with RealmEntity, RealmObjectBase, static final schema = () { RealmObjectBase.registerFactory(AllCollections._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, AllCollections, 'AllCollections', [ - SchemaProperty('stringList', RealmPropertyType.string, collectionType: RealmCollectionType.list), - SchemaProperty('boolList', RealmPropertyType.bool, collectionType: RealmCollectionType.list), - SchemaProperty('dateList', RealmPropertyType.timestamp, collectionType: RealmCollectionType.list), - SchemaProperty('doubleList', RealmPropertyType.double, collectionType: RealmCollectionType.list), - SchemaProperty('objectIdList', RealmPropertyType.objectid, collectionType: RealmCollectionType.list), - SchemaProperty('uuidList', RealmPropertyType.uuid, collectionType: RealmCollectionType.list), - SchemaProperty('intList', RealmPropertyType.int, collectionType: RealmCollectionType.list), - SchemaProperty('decimalList', RealmPropertyType.decimal128, collectionType: RealmCollectionType.list), - SchemaProperty('nullableStringList', RealmPropertyType.string, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableBoolList', RealmPropertyType.bool, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableDateList', RealmPropertyType.timestamp, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableDoubleList', RealmPropertyType.double, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableObjectIdList', RealmPropertyType.objectid, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableUuidList', RealmPropertyType.uuid, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableIntList', RealmPropertyType.int, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('nullableDecimalList', RealmPropertyType.decimal128, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('stringSet', RealmPropertyType.string, collectionType: RealmCollectionType.set), - SchemaProperty('boolSet', RealmPropertyType.bool, collectionType: RealmCollectionType.set), - SchemaProperty('dateSet', RealmPropertyType.timestamp, collectionType: RealmCollectionType.set), - SchemaProperty('doubleSet', RealmPropertyType.double, collectionType: RealmCollectionType.set), - SchemaProperty('objectIdSet', RealmPropertyType.objectid, collectionType: RealmCollectionType.set), - SchemaProperty('uuidSet', RealmPropertyType.uuid, collectionType: RealmCollectionType.set), - SchemaProperty('intSet', RealmPropertyType.int, collectionType: RealmCollectionType.set), - SchemaProperty('decimalSet', RealmPropertyType.decimal128, collectionType: RealmCollectionType.set), - SchemaProperty('nullableStringSet', RealmPropertyType.string, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableBoolSet', RealmPropertyType.bool, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableDateSet', RealmPropertyType.timestamp, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableDoubleSet', RealmPropertyType.double, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableObjectIdSet', RealmPropertyType.objectid, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableUuidSet', RealmPropertyType.uuid, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableIntSet', RealmPropertyType.int, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('nullableDecimalSet', RealmPropertyType.decimal128, optional: true, collectionType: RealmCollectionType.set), - SchemaProperty('stringMap', RealmPropertyType.string, collectionType: RealmCollectionType.map), - SchemaProperty('boolMap', RealmPropertyType.bool, collectionType: RealmCollectionType.map), - SchemaProperty('dateMap', RealmPropertyType.timestamp, collectionType: RealmCollectionType.map), - SchemaProperty('doubleMap', RealmPropertyType.double, collectionType: RealmCollectionType.map), - SchemaProperty('objectIdMap', RealmPropertyType.objectid, collectionType: RealmCollectionType.map), - SchemaProperty('uuidMap', RealmPropertyType.uuid, collectionType: RealmCollectionType.map), - SchemaProperty('intMap', RealmPropertyType.int, collectionType: RealmCollectionType.map), - SchemaProperty('decimalMap', RealmPropertyType.decimal128, collectionType: RealmCollectionType.map), - SchemaProperty('nullableStringMap', RealmPropertyType.string, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableBoolMap', RealmPropertyType.bool, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableDateMap', RealmPropertyType.timestamp, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableDoubleMap', RealmPropertyType.double, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableObjectIdMap', RealmPropertyType.objectid, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableUuidMap', RealmPropertyType.uuid, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableIntMap', RealmPropertyType.int, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('nullableDecimalMap', RealmPropertyType.decimal128, optional: true, collectionType: RealmCollectionType.map), + return const SchemaObject( + ObjectType.realmObject, AllCollections, 'AllCollections', [ + SchemaProperty('stringList', RealmPropertyType.string, + collectionType: RealmCollectionType.list), + SchemaProperty('boolList', RealmPropertyType.bool, + collectionType: RealmCollectionType.list), + SchemaProperty('dateList', RealmPropertyType.timestamp, + collectionType: RealmCollectionType.list), + SchemaProperty('doubleList', RealmPropertyType.double, + collectionType: RealmCollectionType.list), + SchemaProperty('objectIdList', RealmPropertyType.objectid, + collectionType: RealmCollectionType.list), + SchemaProperty('uuidList', RealmPropertyType.uuid, + collectionType: RealmCollectionType.list), + SchemaProperty('intList', RealmPropertyType.int, + collectionType: RealmCollectionType.list), + SchemaProperty('decimalList', RealmPropertyType.decimal128, + collectionType: RealmCollectionType.list), + SchemaProperty('nullableStringList', RealmPropertyType.string, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableBoolList', RealmPropertyType.bool, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableDateList', RealmPropertyType.timestamp, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableDoubleList', RealmPropertyType.double, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableObjectIdList', RealmPropertyType.objectid, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableUuidList', RealmPropertyType.uuid, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableIntList', RealmPropertyType.int, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('nullableDecimalList', RealmPropertyType.decimal128, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('stringSet', RealmPropertyType.string, + collectionType: RealmCollectionType.set), + SchemaProperty('boolSet', RealmPropertyType.bool, + collectionType: RealmCollectionType.set), + SchemaProperty('dateSet', RealmPropertyType.timestamp, + collectionType: RealmCollectionType.set), + SchemaProperty('doubleSet', RealmPropertyType.double, + collectionType: RealmCollectionType.set), + SchemaProperty('objectIdSet', RealmPropertyType.objectid, + collectionType: RealmCollectionType.set), + SchemaProperty('uuidSet', RealmPropertyType.uuid, + collectionType: RealmCollectionType.set), + SchemaProperty('intSet', RealmPropertyType.int, + collectionType: RealmCollectionType.set), + SchemaProperty('decimalSet', RealmPropertyType.decimal128, + collectionType: RealmCollectionType.set), + SchemaProperty('nullableStringSet', RealmPropertyType.string, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableBoolSet', RealmPropertyType.bool, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableDateSet', RealmPropertyType.timestamp, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableDoubleSet', RealmPropertyType.double, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableObjectIdSet', RealmPropertyType.objectid, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableUuidSet', RealmPropertyType.uuid, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableIntSet', RealmPropertyType.int, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('nullableDecimalSet', RealmPropertyType.decimal128, + optional: true, collectionType: RealmCollectionType.set), + SchemaProperty('stringMap', RealmPropertyType.string, + collectionType: RealmCollectionType.map), + SchemaProperty('boolMap', RealmPropertyType.bool, + collectionType: RealmCollectionType.map), + SchemaProperty('dateMap', RealmPropertyType.timestamp, + collectionType: RealmCollectionType.map), + SchemaProperty('doubleMap', RealmPropertyType.double, + collectionType: RealmCollectionType.map), + SchemaProperty('objectIdMap', RealmPropertyType.objectid, + collectionType: RealmCollectionType.map), + SchemaProperty('uuidMap', RealmPropertyType.uuid, + collectionType: RealmCollectionType.map), + SchemaProperty('intMap', RealmPropertyType.int, + collectionType: RealmCollectionType.map), + SchemaProperty('decimalMap', RealmPropertyType.decimal128, + collectionType: RealmCollectionType.map), + SchemaProperty('nullableStringMap', RealmPropertyType.string, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableBoolMap', RealmPropertyType.bool, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableDateMap', RealmPropertyType.timestamp, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableDoubleMap', RealmPropertyType.double, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableObjectIdMap', RealmPropertyType.objectid, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableUuidMap', RealmPropertyType.uuid, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableIntMap', RealmPropertyType.int, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('nullableDecimalMap', RealmPropertyType.decimal128, + optional: true, collectionType: RealmCollectionType.map), ]); }(); @@ -1621,7 +1969,8 @@ class AllCollections extends _AllCollections with RealmEntity, RealmObjectBase, SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class NullableTypes extends _NullableTypes with RealmEntity, RealmObjectBase, RealmObject { +class NullableTypes extends _NullableTypes + with RealmEntity, RealmObjectBase, RealmObject { NullableTypes( ObjectId id, ObjectId differentiator, { @@ -1654,14 +2003,18 @@ class NullableTypes extends _NullableTypes with RealmEntity, RealmObjectBase, Re set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - ObjectId get differentiator => RealmObjectBase.get(this, 'differentiator') as ObjectId; + ObjectId get differentiator => + RealmObjectBase.get(this, 'differentiator') as ObjectId; @override - set differentiator(ObjectId value) => RealmObjectBase.set(this, 'differentiator', value); + set differentiator(ObjectId value) => + RealmObjectBase.set(this, 'differentiator', value); @override - String? get stringProp => RealmObjectBase.get(this, 'stringProp') as String?; + String? get stringProp => + RealmObjectBase.get(this, 'stringProp') as String?; @override - set stringProp(String? value) => RealmObjectBase.set(this, 'stringProp', value); + set stringProp(String? value) => + RealmObjectBase.set(this, 'stringProp', value); @override bool? get boolProp => RealmObjectBase.get(this, 'boolProp') as bool?; @@ -1669,19 +2022,24 @@ class NullableTypes extends _NullableTypes with RealmEntity, RealmObjectBase, Re set boolProp(bool? value) => RealmObjectBase.set(this, 'boolProp', value); @override - DateTime? get dateProp => RealmObjectBase.get(this, 'dateProp') as DateTime?; + DateTime? get dateProp => + RealmObjectBase.get(this, 'dateProp') as DateTime?; @override set dateProp(DateTime? value) => RealmObjectBase.set(this, 'dateProp', value); @override - double? get doubleProp => RealmObjectBase.get(this, 'doubleProp') as double?; + double? get doubleProp => + RealmObjectBase.get(this, 'doubleProp') as double?; @override - set doubleProp(double? value) => RealmObjectBase.set(this, 'doubleProp', value); + set doubleProp(double? value) => + RealmObjectBase.set(this, 'doubleProp', value); @override - ObjectId? get objectIdProp => RealmObjectBase.get(this, 'objectIdProp') as ObjectId?; + ObjectId? get objectIdProp => + RealmObjectBase.get(this, 'objectIdProp') as ObjectId?; @override - set objectIdProp(ObjectId? value) => RealmObjectBase.set(this, 'objectIdProp', value); + set objectIdProp(ObjectId? value) => + RealmObjectBase.set(this, 'objectIdProp', value); @override Uuid? get uuidProp => RealmObjectBase.get(this, 'uuidProp') as Uuid?; @@ -1694,15 +2052,20 @@ class NullableTypes extends _NullableTypes with RealmEntity, RealmObjectBase, Re set intProp(int? value) => RealmObjectBase.set(this, 'intProp', value); @override - Decimal128? get decimalProp => RealmObjectBase.get(this, 'decimalProp') as Decimal128?; + Decimal128? get decimalProp => + RealmObjectBase.get(this, 'decimalProp') as Decimal128?; @override - set decimalProp(Decimal128? value) => RealmObjectBase.set(this, 'decimalProp', value); + set decimalProp(Decimal128? value) => + RealmObjectBase.set(this, 'decimalProp', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override NullableTypes freeze() => RealmObjectBase.freezeObject(this); @@ -1749,17 +2112,21 @@ class NullableTypes extends _NullableTypes with RealmEntity, RealmObjectBase, Re static final schema = () { RealmObjectBase.registerFactory(NullableTypes._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, NullableTypes, 'NullableTypes', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), + return const SchemaObject( + ObjectType.realmObject, NullableTypes, 'NullableTypes', [ + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), SchemaProperty('differentiator', RealmPropertyType.objectid), SchemaProperty('stringProp', RealmPropertyType.string, optional: true), SchemaProperty('boolProp', RealmPropertyType.bool, optional: true), SchemaProperty('dateProp', RealmPropertyType.timestamp, optional: true), SchemaProperty('doubleProp', RealmPropertyType.double, optional: true), - SchemaProperty('objectIdProp', RealmPropertyType.objectid, optional: true), + SchemaProperty('objectIdProp', RealmPropertyType.objectid, + optional: true), SchemaProperty('uuidProp', RealmPropertyType.uuid, optional: true), SchemaProperty('intProp', RealmPropertyType.int, optional: true), - SchemaProperty('decimalProp', RealmPropertyType.decimal128, optional: true), + SchemaProperty('decimalProp', RealmPropertyType.decimal128, + optional: true), ]); }(); @@ -1790,30 +2157,40 @@ class Event extends _Event with RealmEntity, RealmObjectBase, RealmObject { set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - String? get name => RealmObjectBase.get(this, 'stringQueryField') as String?; + String? get name => + RealmObjectBase.get(this, 'stringQueryField') as String?; @override - set name(String? value) => RealmObjectBase.set(this, 'stringQueryField', value); + set name(String? value) => + RealmObjectBase.set(this, 'stringQueryField', value); @override - bool? get isCompleted => RealmObjectBase.get(this, 'boolQueryField') as bool?; + bool? get isCompleted => + RealmObjectBase.get(this, 'boolQueryField') as bool?; @override - set isCompleted(bool? value) => RealmObjectBase.set(this, 'boolQueryField', value); + set isCompleted(bool? value) => + RealmObjectBase.set(this, 'boolQueryField', value); @override - int? get durationInMinutes => RealmObjectBase.get(this, 'intQueryField') as int?; + int? get durationInMinutes => + RealmObjectBase.get(this, 'intQueryField') as int?; @override - set durationInMinutes(int? value) => RealmObjectBase.set(this, 'intQueryField', value); + set durationInMinutes(int? value) => + RealmObjectBase.set(this, 'intQueryField', value); @override - String? get assignedTo => RealmObjectBase.get(this, 'assignedTo') as String?; + String? get assignedTo => + RealmObjectBase.get(this, 'assignedTo') as String?; @override - set assignedTo(String? value) => RealmObjectBase.set(this, 'assignedTo', value); + set assignedTo(String? value) => + RealmObjectBase.set(this, 'assignedTo', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Event freeze() => RealmObjectBase.freezeObject(this); @@ -1850,10 +2227,14 @@ class Event extends _Event with RealmEntity, RealmObjectBase, RealmObject { RealmObjectBase.registerFactory(Event._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Event, 'Event', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), - SchemaProperty('name', RealmPropertyType.string, mapTo: 'stringQueryField', optional: true), - SchemaProperty('isCompleted', RealmPropertyType.bool, mapTo: 'boolQueryField', optional: true), - SchemaProperty('durationInMinutes', RealmPropertyType.int, mapTo: 'intQueryField', optional: true), + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), + SchemaProperty('name', RealmPropertyType.string, + mapTo: 'stringQueryField', optional: true), + SchemaProperty('isCompleted', RealmPropertyType.bool, + mapTo: 'boolQueryField', optional: true), + SchemaProperty('durationInMinutes', RealmPropertyType.int, + mapTo: 'intQueryField', optional: true), SchemaProperty('assignedTo', RealmPropertyType.string, optional: true), ]); }(); @@ -1871,7 +2252,8 @@ class Party extends _Party with RealmEntity, RealmObjectBase, RealmObject { }) { RealmObjectBase.set(this, 'host', host); RealmObjectBase.set(this, 'year', year); - RealmObjectBase.set>(this, 'guests', RealmList(guests)); + RealmObjectBase.set>( + this, 'guests', RealmList(guests)); RealmObjectBase.set(this, 'previous', previous); } @@ -1888,20 +2270,25 @@ class Party extends _Party with RealmEntity, RealmObjectBase, RealmObject { set year(int value) => RealmObjectBase.set(this, 'year', value); @override - RealmList get guests => RealmObjectBase.get(this, 'guests') as RealmList; + RealmList get guests => + RealmObjectBase.get(this, 'guests') as RealmList; @override - set guests(covariant RealmList value) => throw RealmUnsupportedSetError(); + set guests(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override Party? get previous => RealmObjectBase.get(this, 'previous') as Party?; @override - set previous(covariant Party? value) => RealmObjectBase.set(this, 'previous', value); + set previous(covariant Party? value) => + RealmObjectBase.set(this, 'previous', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Party freeze() => RealmObjectBase.freezeObject(this); @@ -1936,10 +2323,13 @@ class Party extends _Party with RealmEntity, RealmObjectBase, RealmObject { RealmObjectBase.registerFactory(Party._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Party, 'Party', [ - SchemaProperty('host', RealmPropertyType.object, optional: true, linkTarget: 'Friend'), + SchemaProperty('host', RealmPropertyType.object, + optional: true, linkTarget: 'Friend'), SchemaProperty('year', RealmPropertyType.int), - SchemaProperty('guests', RealmPropertyType.object, linkTarget: 'Friend', collectionType: RealmCollectionType.list), - SchemaProperty('previous', RealmPropertyType.object, optional: true, linkTarget: 'Party'), + SchemaProperty('guests', RealmPropertyType.object, + linkTarget: 'Friend', collectionType: RealmCollectionType.list), + SchemaProperty('previous', RealmPropertyType.object, + optional: true, linkTarget: 'Party'), ]); }(); @@ -1964,7 +2354,8 @@ class Friend extends _Friend with RealmEntity, RealmObjectBase, RealmObject { RealmObjectBase.set(this, 'name', name); RealmObjectBase.set(this, 'age', age); RealmObjectBase.set(this, 'bestFriend', bestFriend); - RealmObjectBase.set>(this, 'friends', RealmList(friends)); + RealmObjectBase.set>( + this, 'friends', RealmList(friends)); } Friend._(); @@ -1980,20 +2371,26 @@ class Friend extends _Friend with RealmEntity, RealmObjectBase, RealmObject { set age(int value) => RealmObjectBase.set(this, 'age', value); @override - Friend? get bestFriend => RealmObjectBase.get(this, 'bestFriend') as Friend?; + Friend? get bestFriend => + RealmObjectBase.get(this, 'bestFriend') as Friend?; @override - set bestFriend(covariant Friend? value) => RealmObjectBase.set(this, 'bestFriend', value); + set bestFriend(covariant Friend? value) => + RealmObjectBase.set(this, 'bestFriend', value); @override - RealmList get friends => RealmObjectBase.get(this, 'friends') as RealmList; + RealmList get friends => + RealmObjectBase.get(this, 'friends') as RealmList; @override - set friends(covariant RealmList value) => throw RealmUnsupportedSetError(); + set friends(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Friend freeze() => RealmObjectBase.freezeObject(this); @@ -2030,8 +2427,10 @@ class Friend extends _Friend with RealmEntity, RealmObjectBase, RealmObject { return const SchemaObject(ObjectType.realmObject, Friend, 'Friend', [ SchemaProperty('name', RealmPropertyType.string, primaryKey: true), SchemaProperty('age', RealmPropertyType.int), - SchemaProperty('bestFriend', RealmPropertyType.object, optional: true, linkTarget: 'Friend'), - SchemaProperty('friends', RealmPropertyType.object, linkTarget: 'Friend', collectionType: RealmCollectionType.list), + SchemaProperty('bestFriend', RealmPropertyType.object, + optional: true, linkTarget: 'Friend'), + SchemaProperty('friends', RealmPropertyType.object, + linkTarget: 'Friend', collectionType: RealmCollectionType.list), ]); }(); @@ -2051,20 +2450,26 @@ class When extends _When with RealmEntity, RealmObjectBase, RealmObject { When._(); @override - DateTime get dateTimeUtc => RealmObjectBase.get(this, 'dateTimeUtc') as DateTime; + DateTime get dateTimeUtc => + RealmObjectBase.get(this, 'dateTimeUtc') as DateTime; @override - set dateTimeUtc(DateTime value) => RealmObjectBase.set(this, 'dateTimeUtc', value); + set dateTimeUtc(DateTime value) => + RealmObjectBase.set(this, 'dateTimeUtc', value); @override - String get locationName => RealmObjectBase.get(this, 'locationName') as String; + String get locationName => + RealmObjectBase.get(this, 'locationName') as String; @override - set locationName(String value) => RealmObjectBase.set(this, 'locationName', value); + set locationName(String value) => + RealmObjectBase.set(this, 'locationName', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override When freeze() => RealmObjectBase.freezeObject(this); @@ -2113,7 +2518,8 @@ class Player extends _Player with RealmEntity, RealmObjectBase, RealmObject { }) { RealmObjectBase.set(this, 'name', name); RealmObjectBase.set(this, 'game', game); - RealmObjectBase.set>(this, 'scoresByRound', RealmList(scoresByRound)); + RealmObjectBase.set>( + this, 'scoresByRound', RealmList(scoresByRound)); } Player._(); @@ -2129,15 +2535,19 @@ class Player extends _Player with RealmEntity, RealmObjectBase, RealmObject { set game(covariant Game? value) => RealmObjectBase.set(this, 'game', value); @override - RealmList get scoresByRound => RealmObjectBase.get(this, 'scoresByRound') as RealmList; + RealmList get scoresByRound => + RealmObjectBase.get(this, 'scoresByRound') as RealmList; @override - set scoresByRound(covariant RealmList value) => throw RealmUnsupportedSetError(); + set scoresByRound(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Player freeze() => RealmObjectBase.freezeObject(this); @@ -2160,7 +2570,8 @@ class Player extends _Player with RealmEntity, RealmObjectBase, RealmObject { Player( fromEJson(name), game: fromEJson(ejson['game']), - scoresByRound: fromEJson(ejson['scoresByRound'], defaultValue: const []), + scoresByRound: + fromEJson(ejson['scoresByRound'], defaultValue: const []), ), _ => raiseInvalidEJson(ejson), }; @@ -2171,8 +2582,10 @@ class Player extends _Player with RealmEntity, RealmObjectBase, RealmObject { register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Player, 'Player', [ SchemaProperty('name', RealmPropertyType.string, primaryKey: true), - SchemaProperty('game', RealmPropertyType.object, optional: true, linkTarget: 'Game'), - SchemaProperty('scoresByRound', RealmPropertyType.int, optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('game', RealmPropertyType.object, + optional: true, linkTarget: 'Game'), + SchemaProperty('scoresByRound', RealmPropertyType.int, + optional: true, collectionType: RealmCollectionType.list), ]); }(); @@ -2184,21 +2597,26 @@ class Game extends _Game with RealmEntity, RealmObjectBase, RealmObject { Game({ Iterable winnerByRound = const [], }) { - RealmObjectBase.set>(this, 'winnerByRound', RealmList(winnerByRound)); + RealmObjectBase.set>( + this, 'winnerByRound', RealmList(winnerByRound)); } Game._(); @override - RealmList get winnerByRound => RealmObjectBase.get(this, 'winnerByRound') as RealmList; + RealmList get winnerByRound => + RealmObjectBase.get(this, 'winnerByRound') as RealmList; @override - set winnerByRound(covariant RealmList value) => throw RealmUnsupportedSetError(); + set winnerByRound(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Game freeze() => RealmObjectBase.freezeObject(this); @@ -2221,7 +2639,8 @@ class Game extends _Game with RealmEntity, RealmObjectBase, RealmObject { RealmObjectBase.registerFactory(Game._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Game, 'Game', [ - SchemaProperty('winnerByRound', RealmPropertyType.object, linkTarget: 'Player', collectionType: RealmCollectionType.list), + SchemaProperty('winnerByRound', RealmPropertyType.object, + linkTarget: 'Player', collectionType: RealmCollectionType.list), ]); }(); @@ -2229,7 +2648,8 @@ class Game extends _Game with RealmEntity, RealmObjectBase, RealmObject { SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBase, EmbeddedObject { +class AllTypesEmbedded extends _AllTypesEmbedded + with RealmEntity, RealmObjectBase, EmbeddedObject { AllTypesEmbedded( String stringProp, bool boolProp, @@ -2272,22 +2692,29 @@ class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBa RealmObjectBase.set(this, 'nullableUuidProp', nullableUuidProp); RealmObjectBase.set(this, 'nullableIntProp', nullableIntProp); RealmObjectBase.set(this, 'nullableDecimalProp', nullableDecimalProp); - RealmObjectBase.set>(this, 'strings', RealmList(strings)); + RealmObjectBase.set>( + this, 'strings', RealmList(strings)); RealmObjectBase.set>(this, 'bools', RealmList(bools)); - RealmObjectBase.set>(this, 'dates', RealmList(dates)); - RealmObjectBase.set>(this, 'doubles', RealmList(doubles)); - RealmObjectBase.set>(this, 'objectIds', RealmList(objectIds)); + RealmObjectBase.set>( + this, 'dates', RealmList(dates)); + RealmObjectBase.set>( + this, 'doubles', RealmList(doubles)); + RealmObjectBase.set>( + this, 'objectIds', RealmList(objectIds)); RealmObjectBase.set>(this, 'uuids', RealmList(uuids)); RealmObjectBase.set>(this, 'ints', RealmList(ints)); - RealmObjectBase.set>(this, 'decimals', RealmList(decimals)); + RealmObjectBase.set>( + this, 'decimals', RealmList(decimals)); } AllTypesEmbedded._(); @override - String get stringProp => RealmObjectBase.get(this, 'stringProp') as String; + String get stringProp => + RealmObjectBase.get(this, 'stringProp') as String; @override - set stringProp(String value) => RealmObjectBase.set(this, 'stringProp', value); + set stringProp(String value) => + RealmObjectBase.set(this, 'stringProp', value); @override bool get boolProp => RealmObjectBase.get(this, 'boolProp') as bool; @@ -2295,19 +2722,24 @@ class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBa set boolProp(bool value) => RealmObjectBase.set(this, 'boolProp', value); @override - DateTime get dateProp => RealmObjectBase.get(this, 'dateProp') as DateTime; + DateTime get dateProp => + RealmObjectBase.get(this, 'dateProp') as DateTime; @override set dateProp(DateTime value) => RealmObjectBase.set(this, 'dateProp', value); @override - double get doubleProp => RealmObjectBase.get(this, 'doubleProp') as double; + double get doubleProp => + RealmObjectBase.get(this, 'doubleProp') as double; @override - set doubleProp(double value) => RealmObjectBase.set(this, 'doubleProp', value); + set doubleProp(double value) => + RealmObjectBase.set(this, 'doubleProp', value); @override - ObjectId get objectIdProp => RealmObjectBase.get(this, 'objectIdProp') as ObjectId; + ObjectId get objectIdProp => + RealmObjectBase.get(this, 'objectIdProp') as ObjectId; @override - set objectIdProp(ObjectId value) => RealmObjectBase.set(this, 'objectIdProp', value); + set objectIdProp(ObjectId value) => + RealmObjectBase.set(this, 'objectIdProp', value); @override Uuid get uuidProp => RealmObjectBase.get(this, 'uuidProp') as Uuid; @@ -2320,98 +2752,137 @@ class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBa set intProp(int value) => RealmObjectBase.set(this, 'intProp', value); @override - Decimal128 get decimalProp => RealmObjectBase.get(this, 'decimalProp') as Decimal128; + Decimal128 get decimalProp => + RealmObjectBase.get(this, 'decimalProp') as Decimal128; @override - set decimalProp(Decimal128 value) => RealmObjectBase.set(this, 'decimalProp', value); + set decimalProp(Decimal128 value) => + RealmObjectBase.set(this, 'decimalProp', value); @override - String? get nullableStringProp => RealmObjectBase.get(this, 'nullableStringProp') as String?; + String? get nullableStringProp => + RealmObjectBase.get(this, 'nullableStringProp') as String?; @override - set nullableStringProp(String? value) => RealmObjectBase.set(this, 'nullableStringProp', value); + set nullableStringProp(String? value) => + RealmObjectBase.set(this, 'nullableStringProp', value); @override - bool? get nullableBoolProp => RealmObjectBase.get(this, 'nullableBoolProp') as bool?; + bool? get nullableBoolProp => + RealmObjectBase.get(this, 'nullableBoolProp') as bool?; @override - set nullableBoolProp(bool? value) => RealmObjectBase.set(this, 'nullableBoolProp', value); + set nullableBoolProp(bool? value) => + RealmObjectBase.set(this, 'nullableBoolProp', value); @override - DateTime? get nullableDateProp => RealmObjectBase.get(this, 'nullableDateProp') as DateTime?; + DateTime? get nullableDateProp => + RealmObjectBase.get(this, 'nullableDateProp') as DateTime?; @override - set nullableDateProp(DateTime? value) => RealmObjectBase.set(this, 'nullableDateProp', value); + set nullableDateProp(DateTime? value) => + RealmObjectBase.set(this, 'nullableDateProp', value); @override - double? get nullableDoubleProp => RealmObjectBase.get(this, 'nullableDoubleProp') as double?; + double? get nullableDoubleProp => + RealmObjectBase.get(this, 'nullableDoubleProp') as double?; @override - set nullableDoubleProp(double? value) => RealmObjectBase.set(this, 'nullableDoubleProp', value); + set nullableDoubleProp(double? value) => + RealmObjectBase.set(this, 'nullableDoubleProp', value); @override - ObjectId? get nullableObjectIdProp => RealmObjectBase.get(this, 'nullableObjectIdProp') as ObjectId?; + ObjectId? get nullableObjectIdProp => + RealmObjectBase.get(this, 'nullableObjectIdProp') as ObjectId?; @override - set nullableObjectIdProp(ObjectId? value) => RealmObjectBase.set(this, 'nullableObjectIdProp', value); + set nullableObjectIdProp(ObjectId? value) => + RealmObjectBase.set(this, 'nullableObjectIdProp', value); @override - Uuid? get nullableUuidProp => RealmObjectBase.get(this, 'nullableUuidProp') as Uuid?; + Uuid? get nullableUuidProp => + RealmObjectBase.get(this, 'nullableUuidProp') as Uuid?; @override - set nullableUuidProp(Uuid? value) => RealmObjectBase.set(this, 'nullableUuidProp', value); + set nullableUuidProp(Uuid? value) => + RealmObjectBase.set(this, 'nullableUuidProp', value); @override - int? get nullableIntProp => RealmObjectBase.get(this, 'nullableIntProp') as int?; + int? get nullableIntProp => + RealmObjectBase.get(this, 'nullableIntProp') as int?; @override - set nullableIntProp(int? value) => RealmObjectBase.set(this, 'nullableIntProp', value); + set nullableIntProp(int? value) => + RealmObjectBase.set(this, 'nullableIntProp', value); @override - Decimal128? get nullableDecimalProp => RealmObjectBase.get(this, 'nullableDecimalProp') as Decimal128?; + Decimal128? get nullableDecimalProp => + RealmObjectBase.get(this, 'nullableDecimalProp') + as Decimal128?; @override - set nullableDecimalProp(Decimal128? value) => RealmObjectBase.set(this, 'nullableDecimalProp', value); + set nullableDecimalProp(Decimal128? value) => + RealmObjectBase.set(this, 'nullableDecimalProp', value); @override - RealmList get strings => RealmObjectBase.get(this, 'strings') as RealmList; + RealmList get strings => + RealmObjectBase.get(this, 'strings') as RealmList; @override - set strings(covariant RealmList value) => throw RealmUnsupportedSetError(); + set strings(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get bools => RealmObjectBase.get(this, 'bools') as RealmList; + RealmList get bools => + RealmObjectBase.get(this, 'bools') as RealmList; @override - set bools(covariant RealmList value) => throw RealmUnsupportedSetError(); + set bools(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get dates => RealmObjectBase.get(this, 'dates') as RealmList; + RealmList get dates => + RealmObjectBase.get(this, 'dates') as RealmList; @override - set dates(covariant RealmList value) => throw RealmUnsupportedSetError(); + set dates(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get doubles => RealmObjectBase.get(this, 'doubles') as RealmList; + RealmList get doubles => + RealmObjectBase.get(this, 'doubles') as RealmList; @override - set doubles(covariant RealmList value) => throw RealmUnsupportedSetError(); + set doubles(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get objectIds => RealmObjectBase.get(this, 'objectIds') as RealmList; + RealmList get objectIds => + RealmObjectBase.get(this, 'objectIds') as RealmList; @override - set objectIds(covariant RealmList value) => throw RealmUnsupportedSetError(); + set objectIds(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get uuids => RealmObjectBase.get(this, 'uuids') as RealmList; + RealmList get uuids => + RealmObjectBase.get(this, 'uuids') as RealmList; @override - set uuids(covariant RealmList value) => throw RealmUnsupportedSetError(); + set uuids(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmList get ints => RealmObjectBase.get(this, 'ints') as RealmList; + RealmList get ints => + RealmObjectBase.get(this, 'ints') as RealmList; @override set ints(covariant RealmList value) => throw RealmUnsupportedSetError(); @override - RealmList get decimals => RealmObjectBase.get(this, 'decimals') as RealmList; + RealmList get decimals => + RealmObjectBase.get(this, 'decimals') + as RealmList; @override - set decimals(covariant RealmList value) => throw RealmUnsupportedSetError(); + set decimals(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - AllTypesEmbedded freeze() => RealmObjectBase.freezeObject(this); + AllTypesEmbedded freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -2489,7 +2960,8 @@ class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBa static final schema = () { RealmObjectBase.registerFactory(AllTypesEmbedded._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.embeddedObject, AllTypesEmbedded, 'AllTypesEmbedded', [ + return const SchemaObject( + ObjectType.embeddedObject, AllTypesEmbedded, 'AllTypesEmbedded', [ SchemaProperty('stringProp', RealmPropertyType.string), SchemaProperty('boolProp', RealmPropertyType.bool), SchemaProperty('dateProp', RealmPropertyType.timestamp), @@ -2498,22 +2970,37 @@ class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBa SchemaProperty('uuidProp', RealmPropertyType.uuid), SchemaProperty('intProp', RealmPropertyType.int), SchemaProperty('decimalProp', RealmPropertyType.decimal128), - SchemaProperty('nullableStringProp', RealmPropertyType.string, optional: true), - SchemaProperty('nullableBoolProp', RealmPropertyType.bool, optional: true), - SchemaProperty('nullableDateProp', RealmPropertyType.timestamp, optional: true), - SchemaProperty('nullableDoubleProp', RealmPropertyType.double, optional: true), - SchemaProperty('nullableObjectIdProp', RealmPropertyType.objectid, optional: true), - SchemaProperty('nullableUuidProp', RealmPropertyType.uuid, optional: true), + SchemaProperty('nullableStringProp', RealmPropertyType.string, + optional: true), + SchemaProperty('nullableBoolProp', RealmPropertyType.bool, + optional: true), + SchemaProperty('nullableDateProp', RealmPropertyType.timestamp, + optional: true), + SchemaProperty('nullableDoubleProp', RealmPropertyType.double, + optional: true), + SchemaProperty('nullableObjectIdProp', RealmPropertyType.objectid, + optional: true), + SchemaProperty('nullableUuidProp', RealmPropertyType.uuid, + optional: true), SchemaProperty('nullableIntProp', RealmPropertyType.int, optional: true), - SchemaProperty('nullableDecimalProp', RealmPropertyType.decimal128, optional: true), - SchemaProperty('strings', RealmPropertyType.string, collectionType: RealmCollectionType.list), - SchemaProperty('bools', RealmPropertyType.bool, collectionType: RealmCollectionType.list), - SchemaProperty('dates', RealmPropertyType.timestamp, collectionType: RealmCollectionType.list), - SchemaProperty('doubles', RealmPropertyType.double, collectionType: RealmCollectionType.list), - SchemaProperty('objectIds', RealmPropertyType.objectid, collectionType: RealmCollectionType.list), - SchemaProperty('uuids', RealmPropertyType.uuid, collectionType: RealmCollectionType.list), - SchemaProperty('ints', RealmPropertyType.int, collectionType: RealmCollectionType.list), - SchemaProperty('decimals', RealmPropertyType.decimal128, collectionType: RealmCollectionType.list), + SchemaProperty('nullableDecimalProp', RealmPropertyType.decimal128, + optional: true), + SchemaProperty('strings', RealmPropertyType.string, + collectionType: RealmCollectionType.list), + SchemaProperty('bools', RealmPropertyType.bool, + collectionType: RealmCollectionType.list), + SchemaProperty('dates', RealmPropertyType.timestamp, + collectionType: RealmCollectionType.list), + SchemaProperty('doubles', RealmPropertyType.double, + collectionType: RealmCollectionType.list), + SchemaProperty('objectIds', RealmPropertyType.objectid, + collectionType: RealmCollectionType.list), + SchemaProperty('uuids', RealmPropertyType.uuid, + collectionType: RealmCollectionType.list), + SchemaProperty('ints', RealmPropertyType.int, + collectionType: RealmCollectionType.list), + SchemaProperty('decimals', RealmPropertyType.decimal128, + collectionType: RealmCollectionType.list), ]); }(); @@ -2521,7 +3008,8 @@ class AllTypesEmbedded extends _AllTypesEmbedded with RealmEntity, RealmObjectBa SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class ObjectWithEmbedded extends _ObjectWithEmbedded with RealmEntity, RealmObjectBase, RealmObject { +class ObjectWithEmbedded extends _ObjectWithEmbedded + with RealmEntity, RealmObjectBase, RealmObject { ObjectWithEmbedded( String id, { Uuid? differentiator, @@ -2533,9 +3021,11 @@ class ObjectWithEmbedded extends _ObjectWithEmbedded with RealmEntity, RealmObje RealmObjectBase.set(this, '_id', id); RealmObjectBase.set(this, 'differentiator', differentiator); RealmObjectBase.set(this, 'singleObject', singleObject); - RealmObjectBase.set>(this, 'list', RealmList(list)); + RealmObjectBase.set>( + this, 'list', RealmList(list)); RealmObjectBase.set(this, 'recursiveObject', recursiveObject); - RealmObjectBase.set>(this, 'recursiveList', RealmList(recursiveList)); + RealmObjectBase.set>( + this, 'recursiveList', RealmList(recursiveList)); } ObjectWithEmbedded._(); @@ -2546,38 +3036,56 @@ class ObjectWithEmbedded extends _ObjectWithEmbedded with RealmEntity, RealmObje set id(String value) => RealmObjectBase.set(this, '_id', value); @override - Uuid? get differentiator => RealmObjectBase.get(this, 'differentiator') as Uuid?; + Uuid? get differentiator => + RealmObjectBase.get(this, 'differentiator') as Uuid?; @override - set differentiator(Uuid? value) => RealmObjectBase.set(this, 'differentiator', value); + set differentiator(Uuid? value) => + RealmObjectBase.set(this, 'differentiator', value); @override - AllTypesEmbedded? get singleObject => RealmObjectBase.get(this, 'singleObject') as AllTypesEmbedded?; + AllTypesEmbedded? get singleObject => + RealmObjectBase.get(this, 'singleObject') + as AllTypesEmbedded?; @override - set singleObject(covariant AllTypesEmbedded? value) => RealmObjectBase.set(this, 'singleObject', value); + set singleObject(covariant AllTypesEmbedded? value) => + RealmObjectBase.set(this, 'singleObject', value); @override - RealmList get list => RealmObjectBase.get(this, 'list') as RealmList; + RealmList get list => + RealmObjectBase.get(this, 'list') + as RealmList; @override - set list(covariant RealmList value) => throw RealmUnsupportedSetError(); + set list(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RecursiveEmbedded1? get recursiveObject => RealmObjectBase.get(this, 'recursiveObject') as RecursiveEmbedded1?; + RecursiveEmbedded1? get recursiveObject => + RealmObjectBase.get(this, 'recursiveObject') + as RecursiveEmbedded1?; @override - set recursiveObject(covariant RecursiveEmbedded1? value) => RealmObjectBase.set(this, 'recursiveObject', value); + set recursiveObject(covariant RecursiveEmbedded1? value) => + RealmObjectBase.set(this, 'recursiveObject', value); @override - RealmList get recursiveList => RealmObjectBase.get(this, 'recursiveList') as RealmList; + RealmList get recursiveList => + RealmObjectBase.get(this, 'recursiveList') + as RealmList; @override - set recursiveList(covariant RealmList value) => throw RealmUnsupportedSetError(); + set recursiveList(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - ObjectWithEmbedded freeze() => RealmObjectBase.freezeObject(this); + ObjectWithEmbedded freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -2612,13 +3120,21 @@ class ObjectWithEmbedded extends _ObjectWithEmbedded with RealmEntity, RealmObje static final schema = () { RealmObjectBase.registerFactory(ObjectWithEmbedded._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, ObjectWithEmbedded, 'ObjectWithEmbedded', [ - SchemaProperty('id', RealmPropertyType.string, mapTo: '_id', primaryKey: true), + return const SchemaObject( + ObjectType.realmObject, ObjectWithEmbedded, 'ObjectWithEmbedded', [ + SchemaProperty('id', RealmPropertyType.string, + mapTo: '_id', primaryKey: true), SchemaProperty('differentiator', RealmPropertyType.uuid, optional: true), - SchemaProperty('singleObject', RealmPropertyType.object, optional: true, linkTarget: 'AllTypesEmbedded'), - SchemaProperty('list', RealmPropertyType.object, linkTarget: 'AllTypesEmbedded', collectionType: RealmCollectionType.list), - SchemaProperty('recursiveObject', RealmPropertyType.object, optional: true, linkTarget: 'RecursiveEmbedded1'), - SchemaProperty('recursiveList', RealmPropertyType.object, linkTarget: 'RecursiveEmbedded1', collectionType: RealmCollectionType.list), + SchemaProperty('singleObject', RealmPropertyType.object, + optional: true, linkTarget: 'AllTypesEmbedded'), + SchemaProperty('list', RealmPropertyType.object, + linkTarget: 'AllTypesEmbedded', + collectionType: RealmCollectionType.list), + SchemaProperty('recursiveObject', RealmPropertyType.object, + optional: true, linkTarget: 'RecursiveEmbedded1'), + SchemaProperty('recursiveList', RealmPropertyType.object, + linkTarget: 'RecursiveEmbedded1', + collectionType: RealmCollectionType.list), ]); }(); @@ -2626,7 +3142,8 @@ class ObjectWithEmbedded extends _ObjectWithEmbedded with RealmEntity, RealmObje SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class RecursiveEmbedded1 extends _RecursiveEmbedded1 with RealmEntity, RealmObjectBase, EmbeddedObject { +class RecursiveEmbedded1 extends _RecursiveEmbedded1 + with RealmEntity, RealmObjectBase, EmbeddedObject { RecursiveEmbedded1( String value, { RecursiveEmbedded2? child, @@ -2635,7 +3152,8 @@ class RecursiveEmbedded1 extends _RecursiveEmbedded1 with RealmEntity, RealmObje }) { RealmObjectBase.set(this, 'value', value); RealmObjectBase.set(this, 'child', child); - RealmObjectBase.set>(this, 'children', RealmList(children)); + RealmObjectBase.set>( + this, 'children', RealmList(children)); RealmObjectBase.set(this, 'realmObject', realmObject); } @@ -2647,28 +3165,41 @@ class RecursiveEmbedded1 extends _RecursiveEmbedded1 with RealmEntity, RealmObje set value(String value) => RealmObjectBase.set(this, 'value', value); @override - RecursiveEmbedded2? get child => RealmObjectBase.get(this, 'child') as RecursiveEmbedded2?; + RecursiveEmbedded2? get child => + RealmObjectBase.get(this, 'child') + as RecursiveEmbedded2?; @override - set child(covariant RecursiveEmbedded2? value) => RealmObjectBase.set(this, 'child', value); + set child(covariant RecursiveEmbedded2? value) => + RealmObjectBase.set(this, 'child', value); @override - RealmList get children => RealmObjectBase.get(this, 'children') as RealmList; + RealmList get children => + RealmObjectBase.get(this, 'children') + as RealmList; @override - set children(covariant RealmList value) => throw RealmUnsupportedSetError(); + set children(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - ObjectWithEmbedded? get realmObject => RealmObjectBase.get(this, 'realmObject') as ObjectWithEmbedded?; + ObjectWithEmbedded? get realmObject => + RealmObjectBase.get(this, 'realmObject') + as ObjectWithEmbedded?; @override - set realmObject(covariant ObjectWithEmbedded? value) => RealmObjectBase.set(this, 'realmObject', value); + set realmObject(covariant ObjectWithEmbedded? value) => + RealmObjectBase.set(this, 'realmObject', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - RecursiveEmbedded1 freeze() => RealmObjectBase.freezeObject(this); + RecursiveEmbedded1 freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -2699,11 +3230,16 @@ class RecursiveEmbedded1 extends _RecursiveEmbedded1 with RealmEntity, RealmObje static final schema = () { RealmObjectBase.registerFactory(RecursiveEmbedded1._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.embeddedObject, RecursiveEmbedded1, 'RecursiveEmbedded1', [ + return const SchemaObject( + ObjectType.embeddedObject, RecursiveEmbedded1, 'RecursiveEmbedded1', [ SchemaProperty('value', RealmPropertyType.string), - SchemaProperty('child', RealmPropertyType.object, optional: true, linkTarget: 'RecursiveEmbedded2'), - SchemaProperty('children', RealmPropertyType.object, linkTarget: 'RecursiveEmbedded2', collectionType: RealmCollectionType.list), - SchemaProperty('realmObject', RealmPropertyType.object, optional: true, linkTarget: 'ObjectWithEmbedded'), + SchemaProperty('child', RealmPropertyType.object, + optional: true, linkTarget: 'RecursiveEmbedded2'), + SchemaProperty('children', RealmPropertyType.object, + linkTarget: 'RecursiveEmbedded2', + collectionType: RealmCollectionType.list), + SchemaProperty('realmObject', RealmPropertyType.object, + optional: true, linkTarget: 'ObjectWithEmbedded'), ]); }(); @@ -2711,7 +3247,8 @@ class RecursiveEmbedded1 extends _RecursiveEmbedded1 with RealmEntity, RealmObje SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class RecursiveEmbedded2 extends _RecursiveEmbedded2 with RealmEntity, RealmObjectBase, EmbeddedObject { +class RecursiveEmbedded2 extends _RecursiveEmbedded2 + with RealmEntity, RealmObjectBase, EmbeddedObject { RecursiveEmbedded2( String value, { RecursiveEmbedded3? child, @@ -2720,7 +3257,8 @@ class RecursiveEmbedded2 extends _RecursiveEmbedded2 with RealmEntity, RealmObje }) { RealmObjectBase.set(this, 'value', value); RealmObjectBase.set(this, 'child', child); - RealmObjectBase.set>(this, 'children', RealmList(children)); + RealmObjectBase.set>( + this, 'children', RealmList(children)); RealmObjectBase.set(this, 'realmObject', realmObject); } @@ -2732,28 +3270,41 @@ class RecursiveEmbedded2 extends _RecursiveEmbedded2 with RealmEntity, RealmObje set value(String value) => RealmObjectBase.set(this, 'value', value); @override - RecursiveEmbedded3? get child => RealmObjectBase.get(this, 'child') as RecursiveEmbedded3?; + RecursiveEmbedded3? get child => + RealmObjectBase.get(this, 'child') + as RecursiveEmbedded3?; @override - set child(covariant RecursiveEmbedded3? value) => RealmObjectBase.set(this, 'child', value); + set child(covariant RecursiveEmbedded3? value) => + RealmObjectBase.set(this, 'child', value); @override - RealmList get children => RealmObjectBase.get(this, 'children') as RealmList; + RealmList get children => + RealmObjectBase.get(this, 'children') + as RealmList; @override - set children(covariant RealmList value) => throw RealmUnsupportedSetError(); + set children(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - ObjectWithEmbedded? get realmObject => RealmObjectBase.get(this, 'realmObject') as ObjectWithEmbedded?; + ObjectWithEmbedded? get realmObject => + RealmObjectBase.get(this, 'realmObject') + as ObjectWithEmbedded?; @override - set realmObject(covariant ObjectWithEmbedded? value) => RealmObjectBase.set(this, 'realmObject', value); + set realmObject(covariant ObjectWithEmbedded? value) => + RealmObjectBase.set(this, 'realmObject', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - RecursiveEmbedded2 freeze() => RealmObjectBase.freezeObject(this); + RecursiveEmbedded2 freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -2784,11 +3335,16 @@ class RecursiveEmbedded2 extends _RecursiveEmbedded2 with RealmEntity, RealmObje static final schema = () { RealmObjectBase.registerFactory(RecursiveEmbedded2._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.embeddedObject, RecursiveEmbedded2, 'RecursiveEmbedded2', [ + return const SchemaObject( + ObjectType.embeddedObject, RecursiveEmbedded2, 'RecursiveEmbedded2', [ SchemaProperty('value', RealmPropertyType.string), - SchemaProperty('child', RealmPropertyType.object, optional: true, linkTarget: 'RecursiveEmbedded3'), - SchemaProperty('children', RealmPropertyType.object, linkTarget: 'RecursiveEmbedded3', collectionType: RealmCollectionType.list), - SchemaProperty('realmObject', RealmPropertyType.object, optional: true, linkTarget: 'ObjectWithEmbedded'), + SchemaProperty('child', RealmPropertyType.object, + optional: true, linkTarget: 'RecursiveEmbedded3'), + SchemaProperty('children', RealmPropertyType.object, + linkTarget: 'RecursiveEmbedded3', + collectionType: RealmCollectionType.list), + SchemaProperty('realmObject', RealmPropertyType.object, + optional: true, linkTarget: 'ObjectWithEmbedded'), ]); }(); @@ -2796,7 +3352,8 @@ class RecursiveEmbedded2 extends _RecursiveEmbedded2 with RealmEntity, RealmObje SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class RecursiveEmbedded3 extends _RecursiveEmbedded3 with RealmEntity, RealmObjectBase, EmbeddedObject { +class RecursiveEmbedded3 extends _RecursiveEmbedded3 + with RealmEntity, RealmObjectBase, EmbeddedObject { RecursiveEmbedded3( String value, ) { @@ -2811,13 +3368,17 @@ class RecursiveEmbedded3 extends _RecursiveEmbedded3 with RealmEntity, RealmObje set value(String value) => RealmObjectBase.set(this, 'value', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - RecursiveEmbedded3 freeze() => RealmObjectBase.freezeObject(this); + RecursiveEmbedded3 freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -2842,7 +3403,8 @@ class RecursiveEmbedded3 extends _RecursiveEmbedded3 with RealmEntity, RealmObje static final schema = () { RealmObjectBase.registerFactory(RecursiveEmbedded3._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.embeddedObject, RecursiveEmbedded3, 'RecursiveEmbedded3', [ + return const SchemaObject( + ObjectType.embeddedObject, RecursiveEmbedded3, 'RecursiveEmbedded3', [ SchemaProperty('value', RealmPropertyType.string), ]); }(); @@ -2851,7 +3413,8 @@ class RecursiveEmbedded3 extends _RecursiveEmbedded3 with RealmEntity, RealmObje SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class ObjectWithDecimal extends _ObjectWithDecimal with RealmEntity, RealmObjectBase, RealmObject { +class ObjectWithDecimal extends _ObjectWithDecimal + with RealmEntity, RealmObjectBase, RealmObject { ObjectWithDecimal( Decimal128 decimal, { Decimal128? nullableDecimal, @@ -2863,23 +3426,30 @@ class ObjectWithDecimal extends _ObjectWithDecimal with RealmEntity, RealmObject ObjectWithDecimal._(); @override - Decimal128 get decimal => RealmObjectBase.get(this, 'decimal') as Decimal128; + Decimal128 get decimal => + RealmObjectBase.get(this, 'decimal') as Decimal128; @override set decimal(Decimal128 value) => RealmObjectBase.set(this, 'decimal', value); @override - Decimal128? get nullableDecimal => RealmObjectBase.get(this, 'nullableDecimal') as Decimal128?; + Decimal128? get nullableDecimal => + RealmObjectBase.get(this, 'nullableDecimal') as Decimal128?; @override - set nullableDecimal(Decimal128? value) => RealmObjectBase.set(this, 'nullableDecimal', value); + set nullableDecimal(Decimal128? value) => + RealmObjectBase.set(this, 'nullableDecimal', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - ObjectWithDecimal freeze() => RealmObjectBase.freezeObject(this); + ObjectWithDecimal freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -2906,9 +3476,11 @@ class ObjectWithDecimal extends _ObjectWithDecimal with RealmEntity, RealmObject static final schema = () { RealmObjectBase.registerFactory(ObjectWithDecimal._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, ObjectWithDecimal, 'ObjectWithDecimal', [ + return const SchemaObject( + ObjectType.realmObject, ObjectWithDecimal, 'ObjectWithDecimal', [ SchemaProperty('decimal', RealmPropertyType.decimal128), - SchemaProperty('nullableDecimal', RealmPropertyType.decimal128, optional: true), + SchemaProperty('nullableDecimal', RealmPropertyType.decimal128, + optional: true), ]); }(); @@ -2916,7 +3488,8 @@ class ObjectWithDecimal extends _ObjectWithDecimal with RealmEntity, RealmObject SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class Embedded extends _Embedded with RealmEntity, RealmObjectBase, EmbeddedObject { +class Embedded extends _Embedded + with RealmEntity, RealmObjectBase, EmbeddedObject { Embedded( int value, { RealmValue any = const RealmValue.nullValue(), @@ -2935,20 +3508,25 @@ class Embedded extends _Embedded with RealmEntity, RealmObjectBase, EmbeddedObje set value(int value) => RealmObjectBase.set(this, 'value', value); @override - RealmValue get any => RealmObjectBase.get(this, 'any') as RealmValue; + RealmValue get any => + RealmObjectBase.get(this, 'any') as RealmValue; @override set any(RealmValue value) => RealmObjectBase.set(this, 'any', value); @override - Symmetric? get symmetric => RealmObjectBase.get(this, 'symmetric') as Symmetric?; + Symmetric? get symmetric => + RealmObjectBase.get(this, 'symmetric') as Symmetric?; @override - set symmetric(covariant Symmetric? value) => RealmObjectBase.set(this, 'symmetric', value); + set symmetric(covariant Symmetric? value) => + RealmObjectBase.set(this, 'symmetric', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Embedded freeze() => RealmObjectBase.freezeObject(this); @@ -2983,7 +3561,8 @@ class Embedded extends _Embedded with RealmEntity, RealmObjectBase, EmbeddedObje return const SchemaObject(ObjectType.embeddedObject, Embedded, 'Embedded', [ SchemaProperty('value', RealmPropertyType.int), SchemaProperty('any', RealmPropertyType.mixed, optional: true), - SchemaProperty('symmetric', RealmPropertyType.object, optional: true, linkTarget: 'Symmetric'), + SchemaProperty('symmetric', RealmPropertyType.object, + optional: true, linkTarget: 'Symmetric'), ]); }(); @@ -2991,7 +3570,8 @@ class Embedded extends _Embedded with RealmEntity, RealmObjectBase, EmbeddedObje SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class Symmetric extends _Symmetric with RealmEntity, RealmObjectBase, RealmObject { +class Symmetric extends _Symmetric + with RealmEntity, RealmObjectBase, RealmObject { Symmetric( ObjectId id, ) { @@ -3006,10 +3586,12 @@ class Symmetric extends _Symmetric with RealmEntity, RealmObjectBase, RealmObjec set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor([List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override Symmetric freeze() => RealmObjectBase.freezeObject(this); @@ -3038,7 +3620,8 @@ class Symmetric extends _Symmetric with RealmEntity, RealmObjectBase, RealmObjec RealmObjectBase.registerFactory(Symmetric._); register(_toEJson, _fromEJson); return const SchemaObject(ObjectType.realmObject, Symmetric, 'Symmetric', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), ]); }(); @@ -3046,7 +3629,8 @@ class Symmetric extends _Symmetric with RealmEntity, RealmObjectBase, RealmObjec SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class ObjectWithRealmValue extends _ObjectWithRealmValue with RealmEntity, RealmObjectBase, RealmObject { +class ObjectWithRealmValue extends _ObjectWithRealmValue + with RealmEntity, RealmObjectBase, RealmObject { ObjectWithRealmValue( ObjectId id, { ObjectId? differentiator, @@ -3058,9 +3642,12 @@ class ObjectWithRealmValue extends _ObjectWithRealmValue with RealmEntity, Realm RealmObjectBase.set(this, '_id', id); RealmObjectBase.set(this, 'differentiator', differentiator); RealmObjectBase.set(this, 'oneAny', oneAny); - RealmObjectBase.set>(this, 'manyAny', RealmList(manyAny)); - RealmObjectBase.set>(this, 'dictOfAny', RealmMap(dictOfAny)); - RealmObjectBase.set>(this, 'setOfAny', RealmSet(setOfAny)); + RealmObjectBase.set>( + this, 'manyAny', RealmList(manyAny)); + RealmObjectBase.set>( + this, 'dictOfAny', RealmMap(dictOfAny)); + RealmObjectBase.set>( + this, 'setOfAny', RealmSet(setOfAny)); } ObjectWithRealmValue._(); @@ -3071,38 +3658,52 @@ class ObjectWithRealmValue extends _ObjectWithRealmValue with RealmEntity, Realm set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - ObjectId? get differentiator => RealmObjectBase.get(this, 'differentiator') as ObjectId?; + ObjectId? get differentiator => + RealmObjectBase.get(this, 'differentiator') as ObjectId?; @override - set differentiator(ObjectId? value) => RealmObjectBase.set(this, 'differentiator', value); + set differentiator(ObjectId? value) => + RealmObjectBase.set(this, 'differentiator', value); @override - RealmValue get oneAny => RealmObjectBase.get(this, 'oneAny') as RealmValue; + RealmValue get oneAny => + RealmObjectBase.get(this, 'oneAny') as RealmValue; @override set oneAny(RealmValue value) => RealmObjectBase.set(this, 'oneAny', value); @override - RealmList get manyAny => RealmObjectBase.get(this, 'manyAny') as RealmList; + RealmList get manyAny => + RealmObjectBase.get(this, 'manyAny') as RealmList; @override - set manyAny(covariant RealmList value) => throw RealmUnsupportedSetError(); + set manyAny(covariant RealmList value) => + throw RealmUnsupportedSetError(); @override - RealmMap get dictOfAny => RealmObjectBase.get(this, 'dictOfAny') as RealmMap; + RealmMap get dictOfAny => + RealmObjectBase.get(this, 'dictOfAny') + as RealmMap; @override - set dictOfAny(covariant RealmMap value) => throw RealmUnsupportedSetError(); + set dictOfAny(covariant RealmMap value) => + throw RealmUnsupportedSetError(); @override - RealmSet get setOfAny => RealmObjectBase.get(this, 'setOfAny') as RealmSet; + RealmSet get setOfAny => + RealmObjectBase.get(this, 'setOfAny') as RealmSet; @override - set setOfAny(covariant RealmSet value) => throw RealmUnsupportedSetError(); + set setOfAny(covariant RealmSet value) => + throw RealmUnsupportedSetError(); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override - ObjectWithRealmValue freeze() => RealmObjectBase.freezeObject(this); + ObjectWithRealmValue freeze() => + RealmObjectBase.freezeObject(this); EJsonValue toEJson() { return { @@ -3137,13 +3738,20 @@ class ObjectWithRealmValue extends _ObjectWithRealmValue with RealmEntity, Realm static final schema = () { RealmObjectBase.registerFactory(ObjectWithRealmValue._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, ObjectWithRealmValue, 'ObjectWithRealmValue', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), - SchemaProperty('differentiator', RealmPropertyType.objectid, optional: true), - SchemaProperty('oneAny', RealmPropertyType.mixed, optional: true, indexType: RealmIndexType.regular), - SchemaProperty('manyAny', RealmPropertyType.mixed, optional: true, collectionType: RealmCollectionType.list), - SchemaProperty('dictOfAny', RealmPropertyType.mixed, optional: true, collectionType: RealmCollectionType.map), - SchemaProperty('setOfAny', RealmPropertyType.mixed, optional: true, collectionType: RealmCollectionType.set), + return const SchemaObject( + ObjectType.realmObject, ObjectWithRealmValue, 'ObjectWithRealmValue', [ + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), + SchemaProperty('differentiator', RealmPropertyType.objectid, + optional: true), + SchemaProperty('oneAny', RealmPropertyType.mixed, + optional: true, indexType: RealmIndexType.regular), + SchemaProperty('manyAny', RealmPropertyType.mixed, + optional: true, collectionType: RealmCollectionType.list), + SchemaProperty('dictOfAny', RealmPropertyType.mixed, + optional: true, collectionType: RealmCollectionType.map), + SchemaProperty('setOfAny', RealmPropertyType.mixed, + optional: true, collectionType: RealmCollectionType.set), ]); }(); @@ -3151,7 +3759,8 @@ class ObjectWithRealmValue extends _ObjectWithRealmValue with RealmEntity, Realm SchemaObject get objectSchema => RealmObjectBase.getSchema(this) ?? schema; } -class ObjectWithInt extends _ObjectWithInt with RealmEntity, RealmObjectBase, RealmObject { +class ObjectWithInt extends _ObjectWithInt + with RealmEntity, RealmObjectBase, RealmObject { static var _defaultsSet = false; ObjectWithInt( @@ -3177,9 +3786,11 @@ class ObjectWithInt extends _ObjectWithInt with RealmEntity, RealmObjectBase, Re set id(ObjectId value) => RealmObjectBase.set(this, '_id', value); @override - ObjectId? get differentiator => RealmObjectBase.get(this, 'differentiator') as ObjectId?; + ObjectId? get differentiator => + RealmObjectBase.get(this, 'differentiator') as ObjectId?; @override - set differentiator(ObjectId? value) => RealmObjectBase.set(this, 'differentiator', value); + set differentiator(ObjectId? value) => + RealmObjectBase.set(this, 'differentiator', value); @override int get i => RealmObjectBase.get(this, 'i') as int; @@ -3187,10 +3798,13 @@ class ObjectWithInt extends _ObjectWithInt with RealmEntity, RealmObjectBase, Re set i(int value) => RealmObjectBase.set(this, 'i', value); @override - Stream> get changes => RealmObjectBase.getChanges(this); + Stream> get changes => + RealmObjectBase.getChanges(this); @override - Stream> changesFor([List? keyPaths]) => RealmObjectBase.getChangesFor(this, keyPaths); + Stream> changesFor( + [List? keyPaths]) => + RealmObjectBase.getChangesFor(this, keyPaths); @override ObjectWithInt freeze() => RealmObjectBase.freezeObject(this); @@ -3222,9 +3836,12 @@ class ObjectWithInt extends _ObjectWithInt with RealmEntity, RealmObjectBase, Re static final schema = () { RealmObjectBase.registerFactory(ObjectWithInt._); register(_toEJson, _fromEJson); - return const SchemaObject(ObjectType.realmObject, ObjectWithInt, 'ObjectWithInt', [ - SchemaProperty('id', RealmPropertyType.objectid, mapTo: '_id', primaryKey: true), - SchemaProperty('differentiator', RealmPropertyType.objectid, optional: true), + return const SchemaObject( + ObjectType.realmObject, ObjectWithInt, 'ObjectWithInt', [ + SchemaProperty('id', RealmPropertyType.objectid, + mapTo: '_id', primaryKey: true), + SchemaProperty('differentiator', RealmPropertyType.objectid, + optional: true), SchemaProperty('i', RealmPropertyType.int), ]); }();