Observer.withBuiltChild constructor
Observer.withBuiltChild({})
Observer which excludes the child branch from being rebuilt
-
builder
is a builder function with a child widget as a parameter; -
child
is the widget to pass to thebuilder
function.
Implementation
// ignore: prefer_const_constructors_in_immutables
Observer.withBuiltChild({
super.key,
required Widget Function(BuildContext, Widget) builder,
required Widget child,
super.name,
super.warnWhenNoObservables,
}) : debugConstructingStackFrame = debugFindConstructingStackFrame(),
builder = ((context) => builder(context, child));