updateNetworkState method

Future<void> updateNetworkState()

Implementation

Future<void> updateNetworkState() async {
  final state = await sdk.api.service.setting.queryNetwork();
  if (state != null) {
    _cache.write(_getNetworkCacheKey(net_const_cache_key), state["const"]);
    _cache.write(_getNetworkCacheKey(net_state_cache_key), state["props"]);
  }
}