rxSub<Model extends Pub> function

SubscriberAuto<Model> rxSub<Model extends Pub>(
  1. CreatorFn<Model> create, {
  2. Key? key,
})

A function for the Subscriber to create a rx automatic aspect widget.

Implementation

SubscriberAuto<Model> rxSub<Model extends Pub>(CreatorFn<Model> create,
    {Key? key}) {
  assert(shouldExists(create, 'rxSub: Create method should not be null.'));
  return SubscriberAuto<Model>(key: key, create: create);
}