Docs Menu
Docs Home
/ /
Atlas Device SDKs
/

Define Property Types

On this page

  • Data Property Types
  • Generic (Mixed) Data Type
  • Nested Collections in Mixed
  • Counter Data Type
  • Timestamp Data Type
  • Collection Property Types
  • Define a List Property
  • Define a Uint8List Property Type (Dart)
  • Define a Set Property
  • Define a Dictionary Property
  • Relationship Property Types
  • Other Property Types
  • Define an Enum Property

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;
}
← 
 →