subscribeNotifierWidget method

Widget subscribeNotifierWidget(
  1. M model,
  2. ConsumerWidgetBuilder<M> childBuilder
)

订阅消费组件 model 订阅模型 childBuilder 子组件构建器

Implementation

Widget subscribeNotifierWidget(M model, ConsumerWidgetBuilder<M> childBuilder) {
  _model = model;
  parent?.addModel<M>(model.modKey ?? "", model);
  model.setParent(super.parent);
  return _StateWidget.subscribeNotifierWidget<M>(model, childBuilder);
}