InheritedNotifier<T extends Listenable> constructor Null safety

const InheritedNotifier<T extends Listenable>(
  1. {Key? key,
  2. T? notifier,
  3. required Widget child}
)

Create an inherited widget that updates its dependents when notifier sends notifications.

The child argument must not be null.

Implementation

const InheritedNotifier({
  super.key,
  this.notifier,
  required super.child,
}) : assert(child != null);