Subscriber constructor

const Subscriber({
  1. Key? key,
  2. Object? aspects,
  3. required Widget create(),
})

Create a consume widget.

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

create : create a child widget of this consume widget.

Implementation

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