OnUpgrade typedef Null safety

OnUpgrade = Future<void> Function(Migrator m, int from, int to)

Signature of a function that will be invoked when a database is upgraded or downgraded. In version upgrades: from < to In version downgrades: from > to

Implementation

typedef OnUpgrade = Future<void> Function(Migrator m, int from, int to);