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

InheritedSignalProvider<T, S extends ReadonlySignal<T>>({
  1. Key? key,
  2. required S create(),
  3. required Widget child,
})

Create a new ReadonlySignal and provide it in the tree

Implementation

InheritedSignalProvider({
  super.key,
  required S Function() create,
  required super.child,
})  : instance = create(),
      super();