convertToWidgets method

Widget convertToWidgets({
  1. required BuildContext context,
  2. List<I>? source,
  3. required ElementsBuilder<M, I> builder,
})

消费对象组件集转换 context 视图上下文 source 原数据 builder 对象消费者构建器

Implementation

Widget convertToWidgets({required BuildContext context, List<I>? source, required ElementsBuilder<M, I> builder}) {
  builder.setSource(source);
  builder.setModel(this._model);
  var widget = builder.builder(context);
  builder.onBuildComplete();
  return widget;
}