Sqlite class

An annotation used to specify how a field is serialized. Heavily inspired by JsonKey

Implemented types

Constructors

Sqlite({String defaultValue, String fromGenerator, bool ignore, String name, bool nullable, String toGenerator, bool unique})
Creates a new Sqlite instance. [...]
const

Properties

defaultValue String
The value to use if the source's value is null. This is often directly injected to the adapter, and wrapping is required for strings. (e.g. defaultValue: "'Missing Last Name'") [...]
final
fromGenerator String
Manipulates output for the field in the deserialize generator. The instance's field name is automatically defined. While the build method is ultimately responsible for how the output is applied, it is most often directly injected as the value of the field in the deserialize adapter. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
ignore bool
true if the generator should ignore this field completely.
final
name String
The column name to use when reading and writing values corresponding to the annotated fields. [...]
final
nullable bool
When false, the column will be inserted as NOT NULL and a value will be required in subsequent operations. Takes precedence over SqliteSerializable's #nullable. Defaults to true.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
toGenerator String
Manipulates output for the field in the SqliteSerializeGenerator The serializing key is defined from Sqlite or the default naming of the field. [...]
final
unique bool
When true, the column will be inserted with a UNIQUE constraint. Unique columns will also be listed in the adapter for querying if implemented by the invoking provider. Defaults to false. Does not apply to associations.
final

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

Constants

defaults → const Sqlite
An instance of Sqlite with all fields set to their default values.
const Sqlite(ignore: false, nullable: true, unique: false)