count property
int
get
count
分页总页数
Implementation
int get count {
dynamic value;
if (body.containsKey(kPageCountKey)) {
value = body[kPageCountKey];
} else if (data.containsKey(kPageCountKey)) {
value = data[kPageCountKey];
}
if (value == null) {
return kFirstPage;
}
if (!(value is int)) {
value = int.tryParse("$value") ?? 0;
}
if (kFirstPage == 0) {
--value;
}
return value;
}