ObjectType enum Annotations

An enum controlling the base type for a RealmModel.

Inheritance
Available extensions

Values

realmObject → const ObjectType

A standalone top-level object that can be persisted in Realm. It can link to other objects or collections of other objects.

const ObjectType('RealmObject', 0)
embeddedObject → const ObjectType

An object that can be embedded in other objects. It is considered owned by its parent and will be deleted if its parent is deleted.

const ObjectType('EmbeddedObject', 1)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<ObjectType>
A constant List of the values in this enum, in order of their declaration.