BaseRepository<T extends FloorDatabase, R> class
abstract
Base repository.
Constructors
Properties
-
databaseInstance
↔ Future<
T> ? -
global unique singleton database instance
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCallback(
) → Callback - Recommend to use only in getDb
-
getDao(
) → Future< R> -
Get dao instance with generic type
R -
getDb(
) → Future< T> - Get database
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDbCreateCb(
OnCreateCallback cb) → void -
registerDbOpenCb(
OnOpenCallback cb) → void -
registerDbUpgradeCb(
OnUpgradeCallback cb) → void - Register database version change callback, and wait to execute after database created and opened
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited