mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Added pagination and search logic in space tree
This commit is contained in:
20
lib/pages/space_tree/model/pagination_model.dart
Normal file
20
lib/pages/space_tree/model/pagination_model.dart
Normal file
@ -0,0 +1,20 @@
|
||||
import 'package:syncrow_web/pages/spaces_management/all_spaces/model/community_model.dart';
|
||||
|
||||
class PaginationModel {
|
||||
final int pageNum;
|
||||
final bool hasNext;
|
||||
final int size;
|
||||
final List<CommunityModel> communities;
|
||||
|
||||
const PaginationModel(
|
||||
{required this.pageNum,
|
||||
required this.hasNext,
|
||||
required this.size,
|
||||
required this.communities});
|
||||
|
||||
const PaginationModel.emptyConstructor()
|
||||
: pageNum = 1,
|
||||
hasNext = true,
|
||||
size = 10,
|
||||
communities = const [];
|
||||
}
|
Reference in New Issue
Block a user