GeneratorVersion enum

Represents the generator version used to create the model.

This enum contains all supported versions by this ObjectBox runtime library. It is used purely for compile-time enforcement to ensure users regenerate code after updating the objectbox package. Once a version is not compatible/supported, it is removed from this enum. Note: using a separate, date based, versioning (YYYY_MM_DD) as the generator is not always updated in each library version.

Inheritance
Available extensions

Values

none → const GeneratorVersion

The model was not created by generated code.

v2025_12_16 → const GeneratorVersion

Generator for ObjectBox Dart 5.1 (introduced the GeneratorVersion enum)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<GeneratorVersion>
A constant List of the values in this enum, in order of their declaration.