builder property

Widget Function(BuildContext context, Widget? child)? builder
final

An optional builder function for customizing the widget tree.

If provided, this function is called with the BuildContext and child widget, allowing you to wrap the child with additional widgets.

Example:

NotifierRegister<CounterNotifier>(
  create: (context) => CounterNotifier(),
  builder: (context, child) => Material(child: child),
  child: MyApp(),
)

Implementation

final Widget Function(BuildContext context, Widget? child)? builder;