Callback class
Callback class that can be attached to the Floor builder.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onConfigure
→ FutureOr<
void> Function(Database database)? -
Fired when the database will be configured (will run before migrations, onCreate and onUpgrade hooks).
final
-
onCreate
→ FutureOr<
void> Function(Database database, int version)? -
Fired when the database has been just created with
version. All actions are run within a single transaction.final -
onOpen
→ FutureOr<
void> Function(Database database)? -
Fired when the database has successfully been opened.
final
-
onUpgrade
→ FutureOr<
void> Function(Database database, int startVersion, int endVersion)? -
Fired when the database has finished upgrading from
startVersiontoendVersion. All actions are run within a single transaction.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