DaoField class

Annotation for dao fields.

Valid types are String, int, double, bool, Uint8List and DateTime.

If name is not set, the name of the class is used.

The length parameter defines the size of the String, int or double field. If used on a string field, the length is interpreted as amount of characters. If used on an int or double field, the length is interpreted as amount of bits used to represent the value.

Be aware that different DatabaseAdapter implementations can accept different types lengths and may throw if an invalid size is used.

If length is not set, the default of the given type is used: String: 255 int: 32 (bit) double: 64 (bit)

Implementers

Constructors

DaoField({String? name, int? length})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
length int?
final
name String?
final
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