ExternalType constructor

const ExternalType({
  1. required ExternalPropertyType type,
})

Sets the type of a field in an Entity class in an external system (like another database).

When used on a ToMany field, this sets the type of the object IDs of the relation instead.

This is useful if there is no default mapping of the ObjectBox type to the type in the external system.

Carefully look at the documentation of the external type to ensure it is compatible with the ObjectBox type.

Implementation

const ExternalType({required this.type});