StanzaField class

The annotation to enhance a Dart class property into a Stanza database field interface.

StanzaField is not required and only necessary if additional annotations are required on the field. Otherwise, Dart class properties of a StanzaEntity are automatically converted to fields.

name: sets an explict name on a field to correspond with a database field name. readOnly: will read this field from the database but not write it to the database. Useful for things like id's or timestamps.

Constructors

StanzaField({String name, bool readOnly: false })
const

Properties

name → String
final
readOnly → bool
final
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited