onCreate property

FutureOr<void> Function(Database database, int version)? onCreate
final

Fired when the database has been just created with version. All actions are run within a single transaction.

Implementation

final FutureOr<void> Function(
  Database database,
  int version,
)? onCreate;