initialize method

  1. @override
Future<void> initialize()

Prepare the environment for future repository functions. It is recommended to call this method within a StatefulWidget's initState to ensure it is only invoked once. It is not automatically invoked.

If this method is overriden in the sub class, migrate must be called before using SQLite features.

Implementation

@override
Future<void> initialize() async {
  await migrate();
}