SolidProvider<T> constructor

const SolidProvider<T>({
  1. Key? key,
  2. required Widget child,
  3. required T create(
    1. BuildContext context
    ),
  4. bool notifyUpdate(
    1. InheritedSolidProvider<T> oldWidget
    )?,
})

A provider widget that supplies data of type T to its descendants. It uses an InheritedWidget to propagate the data down the widget tree.

Implementation

const SolidProvider({
  super.key,
  required this.child,
  required this.create,
  this.notifyUpdate,
});