init static method

Future init()

初始化首选项信息 SharedPreferences.getInstance() isWeb SharedPreferencesPlugin() isWindows SharedPreferencesWindows.instance

Implementation

static Future<dynamic> init() async {
  instance = await sharedPreferencesInstance();
  return instance;
}