Docs Menu

Define Property Types

Placeholder page for supported data types.

Uint8List is a binary data type from dart:typed_data. You can use this data type in object models and property values.

To define a property as Uint8List, you must first import dart:typed_data. Then, set the object's type as Uint8List in your object model.

@RealmModel()
class _BinaryExample {
late String name;
late Uint8List requiredBinaryProperty;
late Uint8List? nullableBinaryProperty;
}