init method

void init()

Implementation

void init() async {
  sharedPreferences = await SharedPreferences.getInstance();
}