init method

Future<void> init()

Implementation

Future<void> init() async {
  _spf = await SharedPreferences.getInstance();
  enableProxy.value = _spf.get(KEY_PROXY_ENABLE) == true;

  await HttpHookController.instance.init();
  //全局HttpOverrides
  HttpOverrides.global = MyHttpOverrides();
  return Future.value();
}