-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathlist_base_page.dart
24 lines (18 loc) · 1 KB
/
list_base_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import 'package:byr_mobile_app/nforum/nforum_structures.dart';
import 'package:byr_mobile_app/pages/pageable_list_base_page.dart';
class ArticleListBaseData<X extends ArticleListBaseModel> extends PageableListBaseData<X> {
X articleList;
PageableListDataRequestHandler<X> dataRequestHandler;
}
abstract class ArticleListBasePage extends PageableListBasePage {}
/// need to override initialization, buildCell, buildSeparator, build
abstract class ArticleListBasePageState<Y extends ArticleListBaseModel, Z extends ArticleListBasePage>
extends PageableListBasePageState<Y, Z> {}
class UserListData<X extends UserListModel> extends PageableListBaseData<X> {
X articleList;
PageableListDataRequestHandler<X> dataRequestHandler;
}
abstract class UserListPage extends PageableListBasePage {}
/// need to override initialization, buildCell, buildSeparator, build
abstract class UserListPageState<Y extends UserListModel, Z extends UserListPage>
extends PageableListBasePageState<Y, Z> {}