- 模版是一个 Map,接受一个数组类型的数据驱动
- 示例代码
class RecommendAdapter extends DynamicFlowAdapter<RecommendState> {
RecommendAdapter()
: super(
pool: <String, Component<Object>>{
'card_0': RecommendTitleComponent(),
'card_1': RecommendRowComponent(),
},
connector: RecommendCardListConnector(),
);
}