OnBeforeOpen typedef

OnBeforeOpen = Future<void> Function(OpeningDetails details)

Signature of a function that's called before a database is marked opened by drift, but after migrations took place. This is a suitable callback to to populate initial data or issue PRAGMA statements that you want to use.

Implementation

typedef OnBeforeOpen = Future<void> Function(OpeningDetails details);