initialize static method

Future<void> initialize()

Initializes the local environment for the SDK.

This method must be called before creating any instance of GeoEngine. It initializes the local database (Hive) used for buffering location data.

Implementation

static Future<void> initialize() async {
  await Hive.initFlutter();
  await Hive.openBox(_boxName);
}