init method

Future<void> init()

Initializes the storage providers.

Implementation

Future<void> init() async {
  if (enableCache && cacheProvider != null) {
    await cacheProvider!.init();
  }
  if (enableOffline && dataProvider != null) {
    await dataProvider!.init();
  }
}