convertToWidget method
Widget
convertToWidget({
- required BuildContext context,
- required ConsumerBuilder<
ProviderModel, ProviderModel> builder, - 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);
}