OnDatabaseCreateFn typedef

FutureOr<void> OnDatabaseCreateFn (
  1. Database db,
  2. int version
)

Prototype of the function called when the database is created.

Database intialization (creating tables, views, triggers...) should happen here.

Implementation

typedef OnDatabaseCreateFn = FutureOr<void> Function(Database db, int version);