init method

Implementation

Future<PreferencesService> init() async {
  _preferences = await SharedPreferences.getInstance();
  return this;
}