Realm class

For interaction with realm

param _channel required for make call to native library

Constructors

Realm(SyncUser _syncUser, String _appId, String _partition)

Properties

appId String
no setter
hashCode int
The hash code for this object.
no setterinherited
partition String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syncUser SyncUser
no setter

Methods

create<T extends RLMObject>(ItemCreator _creator, T value, {UpdatePolicy policy = UpdatePolicy.error}) Future<T>
Create object by given policy.
createList<T extends RLMObject>(ItemCreator _creator, List<T> value, {UpdatePolicy policy = UpdatePolicy.error}) Future<void>
Create object list given policy.
createWithJson<T extends RLMObject>(ItemCreator _creator, Map value, {UpdatePolicy policy = UpdatePolicy.error}) Future<T>
Create object by given policy.
createWithJsonImpl<T extends RLMObject>(dynamic value, {UpdatePolicy policy = UpdatePolicy.error}) Future<Map>
Create object by given policy.
delete<T extends RLMObject>(dynamic primaryKey) Future<void>
Delete object from primaryKey.
deleteAll() Future<void>
Delete all objects from realm.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
objects<T extends RLMObject>(ItemCreator _creator) Results<T>
Fetch list of objects.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

all(String appId) Future<List<Map<String, SyncUser>>>
logoutAll(String appId) Future<void>
Logout all users