DatabaseCreator typedef

DatabaseCreator = FutureOr<void> Function(File file)

Signature of a function that runs when a database doesn't exist on file. This can be useful to, for instance, load the database from an asset if it doesn't exist.

Implementation

typedef DatabaseCreator = FutureOr<void> Function(File file);