initLocalStorage function

Future<void> initLocalStorage()

Initialize the LocalStorage.

Implementation

Future<void> initLocalStorage() async {
  if (_initialized) return;

  _localStorage = await init();
  _initialized = true;
}