init method

void init()

Implementation

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