requestGetNewVersion static method

dynamic requestGetNewVersion(
  1. dynamic callBack(
    1. VersionModel?
    )
)

版本升级 callBack 返回结果

Implementation

static requestGetNewVersion(Function(VersionModel?) callBack) {
  DioManager().request<dynamic>(RequestType.POST, RequestApi.apiGetNewVersion, onSuccess: (data) {
    callBack(VersionModel.fromJson(data));
  }, onError: (error) {
    callBack(null);
  }, errorToast: false);
}