NotifierRegister<N extends BaseNotifier<Object?> > constructor
const
NotifierRegister<N extends BaseNotifier<Object?> > ({
- required N create(
- BuildContext context
- bool? lazy,
- Widget? child,
- Widget builder(
- BuildContext context,
- Widget? child
- Key? key,
Creates a NotifierRegister.
create is a function that returns a new notifier instance.
lazy determines whether the notifier should be created lazily.
child is an optional static child widget.
builder is an optional builder function for customizing the widget tree.
key is the widget key.
Implementation
const NotifierRegister({
required this.create,
this.lazy,
this.child,
this.builder,
super.key,
});