[Widgets]: cleanup: refactored to use guard-else flow instead of if-else flow

This commit is contained in:
Magesh K
2025-01-11 21:31:10 +05:30
parent 720a397dd4
commit ba825d4218
6 changed files with 198 additions and 153 deletions

View File

@@ -18,6 +18,11 @@ public class PaginationDataHolder {
self.currentPageindex = startPageIndex
}
init(other: PaginationDataHolder) {
self.itemsPerPage = other.itemsPerPage
self.currentPageindex = other.currentPageindex
}
public enum PageLimitResult{
case null
case empty