提交 80b4170c authored 作者: 祁增奎's avatar 祁增奎

增加获取数据源的方法

上级 18259842
...@@ -92,6 +92,8 @@ class _MyListViewPublicState extends State<MyListViewPublic> { ...@@ -92,6 +92,8 @@ class _MyListViewPublicState extends State<MyListViewPublic> {
_defaultRefresh(); _defaultRefresh();
} }
List get dataList => _dataList;
// 移除数据 // 移除数据
void removeItem(index) { void removeItem(index) {
_dataList.removeAt(index); _dataList.removeAt(index);
...@@ -241,6 +243,9 @@ class MyListController { ...@@ -241,6 +243,9 @@ class MyListController {
void notifySingleItem(index, beanJson) { void notifySingleItem(index, beanJson) {
return _deerListViewState?.notifySingleItem(index, beanJson); return _deerListViewState?.notifySingleItem(index, beanJson);
} }
/// 获取数据源
List get dataList => _deerListViewState?._dataList ?? [];
} }
class MoreWidget extends StatelessWidget { class MoreWidget extends StatelessWidget {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论