coinPkg static method
Implementation
static coinPkg(Function(List<CoinPkgBean>) onSuccess, Function(String errStr)? onError) {
DioManager().requestList<dynamic>(RequestType.POST, RequestApi.apiCoinPkgList, onSuccess: (data) {
List<CoinPkgBean> list = List<CoinPkgBean>.from(data.map((e) => CoinPkgBean.fromJson(e)));
onSuccess(list);
}, onError: (error) {
if (onError != null) {
onError(error.message);
}
});
}