initialize method

Future<void> initialize()

Initialize the local storage

Implementation

Future<void> initialize() async {
  if (_initialized) return;
  _prefs = await SharedPreferences.getInstance();
  _initialized = true;
}