InheritedSolidProvider<T> constructor

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

An InheritedWidget that holds the provided data of type T. It notifies its descendants when the data changes based on the notifyUpdate callback.

Implementation

const InheritedSolidProvider({
  super.key,
  required super.child,
  required this.data,
  this.notifyUpdate,
});