HiveType class Null safety

Annotate classes with HiveType to generate a TypeAdapter.

Constructors

HiveType({required int typeId, String? adapterName})
This parameter can be used to keep track of old fieldIds which must not be reused. The generator will throw an error if a legacy fieldId is used again. If adapterName is not set, it'll be "YourClass" + "Adapter".
const

Properties

adapterName String?
The name of the generated adapter.
final
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
typeId int
The typeId of the annotated class.
final

Methods

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

Operators

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