OfflineFirstModel class

This model is constructed by data in SQLite. It hydrates from a REST endpoint.

Why isn't this in the offline_first.dart file in the SQLite package? This is model required by the generator which cannot include Flutter as a dependency.

Mixed in types
Implementers

Constructors

OfflineFirstModel()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isNewRecord bool
If true, this model has not yet been inserted into SQLite.
read-only, inherited
primaryKey int
DO NOT modify this in the end implementation code. The Repository will update it accordingly. It is strongly recommended that this field only be used by Brick's internal queries and not in the end implementation. [...]
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

afterSave({Provider<Model> provider, ModelRepository<Model> repository}) Future<void>
Hook invoked after the model is successfully entered in the SQLite database. Useful to update or save associations.
inherited
beforeSave({Provider<Model> provider, ModelRepository<Model> repository}) Future<void>
Hook invoked before the model is successfully entered in the SQLite database. Useful to update or save associations.
inherited
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