OnDatabaseCreateFn typedef

OnDatabaseCreateFn = FutureOr<void> Function(Database db, 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);