ReactterBuilder<T extends ReactterContext?> constructor

const ReactterBuilder<T extends ReactterContext?>({
  1. Key? key,
  2. String? id,
  3. ListenHooks<T>? listenHooks,
  4. bool listenAllHooks = false,
  5. Widget? child,
  6. InstanceBuilder<T>? builder,
})

Implementation

const ReactterBuilder({
  Key? key,
  this.id,
  this.listenHooks,
  this.listenAllHooks = false,
  this.child,
  this.builder,
})  : assert(child != null || builder != null),
      assert(
        (listenAllHooks && listenHooks == null) || !listenAllHooks,
        "Can't use `listenAllHooks` with `listenHooks`",
      ),
      super(key: key);