InheritedSignalElement<T, S extends ReadonlySignal<T>> constructor

InheritedSignalElement<T, S extends ReadonlySignal<T>>(
  1. InheritedWidget widget, {
  2. required S instance,
})

Implementation

InheritedSignalElement(
  super.widget, {
  required this.instance,
}) {
  _cleanup = instance.subscribe(_update);
}