initAsync static method

Future<bool> initAsync()

Initialize the SharedPreferences object and returns true when completed.

Implementation

static Future<bool> initAsync() async {
  await init();
  return true;
}