rechargeInList method
Implementation
Future rechargeInList(String type, RechargeTypeList codeType,
{bool pop = false}) {
return RechargeDao.rechargeList(type, codeType.type).then((res) {
if (res.result) {
List<RechargeList> list = res.data.list;
list.sort((a, b) =>
compareString(a.sortTop).compareTo(compareString(b.sortTop)));
rechargeModels[codeType] = list;
return true;
}
return false;
});
}