Subscriber<Model extends Pub> constructor

const Subscriber<Model extends Pub>({
  1. Key? key,
  2. Object? aspects,
  3. required CreatorFn<Model> create,
})

Create a consumer widget.

aspects : register the aspects with the consumer widget. This widget will rebuild whenever any aspect in the aspects is notified.

rxAuto : if enable automatic aspect management, i.e. any watched variable value used inside the create function will rebuild the consumer widget when updating the value of the watched variable.

create : create a child widget of this consumer widget.

Implementation

const Subscriber({
  Key? key,
  this.aspects,
  required this.create,
}) : super(key: key);