convertToWidget method

Widget convertToWidget({
  1. required BuildContext context,
  2. required ConsumerBuilder<ProviderModel, ProviderModel> builder,
  3. required ProviderModel parent,
})

消费对象组件转换 context 视图上下文 builder 对象消费者构建器 parent 父对象model

Implementation

Widget convertToWidget(
    {required BuildContext context, required ConsumerBuilder builder, required ProviderModel parent}) {
  builder.setParentModel(parent);
  return builder.builder(context);
}