initialize method

  1. @override
  2. @mustCallSuper
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
@mustCallSuper
Future<void> initialize() async {
  await super.initialize();

  // Start queue processing
  offlineRequestQueue.start();
}