fetch static method

Future<void> fetch()

Implementation

static Future<void> fetch() async {
  final result = await Network.shared.request(
    (api) => api.launch(EmptyRequest()),
  );
  Logger.debug("Launch.fetch : ${json.encode(result)}");
  AppStorage.isReview = result?.config.clientAppAuditEnable ?? true;
  final token = result?.token ?? '';
  if (token.isEmpty) {
    return;
  }
  AppStorage.token = token;
}