InheritedSignalElement<T, S extends ReadonlySignal<T> > constructor
InheritedSignalElement<T, S extends ReadonlySignal<T> > (
- InheritedWidget widget, {
- required S instance,
ReadonlySignal based on InheritedElement
Implementation
InheritedSignalElement(
super.widget, {
required this.instance,
}) {
_cleanup = instance.subscribe(_update);
}