页面多入口优化

[toc]

页面多入口优化

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class WishPublishPage extends BJHBasePage {
bool isUpdateBusiness;
Wish_detail_model wishDetailModel;

WishPublishPage({
Key key,
this.isUpdateBusiness = false,
this.wishDetailModel,
}) : super(key: key);

WishPublishPage.fromTemplatePage({
Key key,
this.isUpdateBusiness = false,
WishTemplateModel templateModel,
}) : super(key: key) {
wishDetailModel =
Wish_detail_model.fromTemplateJson(templateModel.toJson());
}

WishPublishPage.fromOtherUser({
Key key,
List<Items> selectGoodsList,
}) : super(key: key) {
isUpdateBusiness = false;
wishDetailModel.items = selectGoodsList;
}

@override
_WishPublishPageState createState() => _WishPublishPageState();
}