totalPages property

int get totalPages

The total number of pages

Implementation

int get totalPages => total > 0 ? (total / limit).ceil() : 0;