Aplicaciones Realm modelan datos como objetos compuestos de pares campo-valor, donde cada uno contiene uno o más tipos de datos admitidos.
Realm Objects
Los objetos Realm son clases regulares de Dart con las que puedes interactuar como con cualquier otra clase de Dart en tu aplicación. La memoria del SDK de Flutter mapea los objetos Realm directamente a Realm. Puedes trabajar con objetos Realm como lo harías con cualquier otra instancia de objeto Dart.
Every Realm object conforms to a specific object type, which is a class that defines the properties and relationships for objects of that type. The SDK guarantees that all objects in a realm conform to the schema for their object type and validates objects whenever they are created, modified, or deleted.
Para obtener más información sobre cómo definir objetos Realm, consulta Definir un esquema de objeto Realm.
Realm Object Properties
When you define your Realm object model, you specify a set of of properties to include in the schema. You can define properties with the following characteristics:
Su tipo de dato
If it is optional or required
Si es una llave primaria
If it is indexed
If the property defines a relationship to another Realm object type
To learn more about property options when defining Realm objects, refer to the following documentation:
Updating a Realm Object Schema
You can update your Realm schema over time as your application changes. The steps to update the schema and your data vary depending on the type of schema change. To learn more about the ways to update your schema, refer to Update a Realm Object Schema.