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({
  Key? key,
  this.notifier,
  required Widget child,
}) : assert(child != null),
     super(key: key, child: child);