realClass property

Type? realClass
final

Actual type this entity represents. ObjectBox will use it instead of the @Entity()-annotated class's name. For example:

@freezed
class Person with _$Person {
  @Entity(realClass: Person)
  factory Person(
      {@Id(assignable: true) required int id,
      required String name}) = _Person;
}

Implementation

final Type? realClass;